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"))
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")
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")