Issue #21485: remove unnecesary .flush() calls in the asyncio subprocess code
example
This commit is contained in:
parent
7fe1049fcb
commit
b0539b27d9
|
@ -262,9 +262,7 @@ display the output::
|
||||||
stdout = stdout.decode('ascii').rstrip()
|
stdout = stdout.decode('ascii').rstrip()
|
||||||
print("Platform: %s" % stdout)
|
print("Platform: %s" % stdout)
|
||||||
else:
|
else:
|
||||||
print("Python failed with exit code %s:" % exitcode)
|
print("Python failed with exit code %s:" % exitcode, flush=True)
|
||||||
sys.stdout.flush()
|
|
||||||
sys.stdout.buffer.flush()
|
|
||||||
sys.stdout.buffer.write(stdout)
|
sys.stdout.buffer.write(stdout)
|
||||||
sys.stdout.buffer.flush()
|
sys.stdout.buffer.flush()
|
||||||
loop.close()
|
loop.close()
|
||||||
|
|
Loading…
Reference in New Issue