[Python-checkins] cpython (3.4): Issue #21485: remove unnecesary .flush() calls in the asyncio subprocess code
victor.stinner
python-checkins at python.org
Mon May 12 23:25:35 CEST 2014
http://hg.python.org/cpython/rev/c0404f0da01a
changeset: 90667:c0404f0da01a
branch: 3.4
parent: 90665:ef49aaad3812
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon May 12 23:25:09 2014 +0200
summary:
Issue #21485: remove unnecesary .flush() calls in the asyncio subprocess code
example
files:
Doc/library/asyncio-subprocess.rst | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/Doc/library/asyncio-subprocess.rst b/Doc/library/asyncio-subprocess.rst
--- a/Doc/library/asyncio-subprocess.rst
+++ b/Doc/library/asyncio-subprocess.rst
@@ -262,9 +262,7 @@
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()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list