Exemple #1
0
def resulttostr(args):
    if not args.results:
        args.results = [line.strip() for line in sys.stdin]

    for result in args.results:
        print(
            raw.flux_job_resulttostr(int(result), args.abbrev).decode("utf-8"))
Exemple #2
0
def resulttostr(resultid, singlechar=False):
    # if result not returned, just return empty string back
    if resultid == "":
        return ""
    return raw.flux_job_resulttostr(resultid, singlechar).decode("utf-8")
Exemple #3
0
def resulttostr(resultid, fmt="L"):
    # if result not returned, just return empty string back
    if resultid == "":
        return ""
    return raw.flux_job_resulttostr(resultid, fmt).decode("utf-8")