mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
(Merge 3.4) Issue #21485: remove unnecesary .flush() calls in the asyncio
subprocess code example
This commit is contained in:
commit
933da8efb7
1 changed files with 1 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue