Kaydet (Commit) 933da8ef authored tarafından Victor Stinner's avatar Victor Stinner

(Merge 3.4) Issue #21485: remove unnecesary .flush() calls in the asyncio

subprocess code example
......@@ -262,9 +262,7 @@ display the output::
stdout = stdout.decode('ascii').rstrip()
print("Platform: %s" % stdout)
else:
print("Python failed with exit code %s:" % exitcode)
sys.stdout.flush()
sys.stdout.buffer.flush()
print("Python failed with exit code %s:" % exitcode, flush=True)
sys.stdout.buffer.write(stdout)
sys.stdout.buffer.flush()
loop.close()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment