[Python-checkins] cpython (merge 3.4 -> default): (Merge 3.4) Issue #21485: remove unnecesary .flush() calls in the asyncio
victor.stinner
python-checkins at python.org
Mon May 12 23:25:37 CEST 2014
http://hg.python.org/cpython/rev/3c26389d741c
changeset: 90668:3c26389d741c
parent: 90666:3da4aed1d18a
parent: 90667:c0404f0da01a
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon May 12 23:25:25 2014 +0200
summary:
(Merge 3.4) 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