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

subprocess code example
This commit is contained in:
Victor Stinner 2014-05-12 23:25:25 +02:00
commit 933da8efb7

View file

@ -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()