Message218342
The current code example contains [1]:
print("Python failed with exit code %s:" % exitcode)
sys.stdout.flush()
sys.stdout.buffer.flush()
sys.stdout.buffer.write(stdout)
sys.stdout.buffer.flush()
that looks bizarre.
Either a comment should be added that explains why the `.flush()` calls
are necessary or they should be removed.
I've attached the documentation patch that removes the calls.
[1] http://hg.python.org/cpython/file/2af5a52b9b87/Doc/library/asyncio-subprocess.rst#l227 |
|
Date |
User |
Action |
Args |
2014-05-12 17:59:23 | akira | set | recipients:
+ akira, docs@python |
2014-05-12 17:59:23 | akira | set | messageid: <1399917563.48.0.572590350966.issue21485@psf.upfronthosting.co.za> |
2014-05-12 17:59:23 | akira | link | issue21485 messages |
2014-05-12 17:59:23 | akira | create | |
|