cpython: 911f398c6396 (original) (raw)
Mercurial > cpython
changeset 101448:911f398c6396
Merge 3.5 (issue #26741) [#26741]
Victor Stinner victor.stinner@gmail.com | |
---|---|
date | Fri, 20 May 2016 13:06:55 +0200 |
parents | b7f3494deb2c(current diff)72946937536e(diff) |
children | 6f7e5b51c8fb |
files | Lib/asyncio/base_subprocess.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-)[+] [-] Lib/asyncio/base_subprocess.py 4 |
line wrap: on
line diff
--- a/Lib/asyncio/base_subprocess.py +++ b/Lib/asyncio/base_subprocess.py @@ -211,6 +211,10 @@ class BaseSubprocessTransport(transports logger.info('%r exited with return code %r', self, returncode) self._returncode = returncode
if self._proc.returncode is None:[](#l1.7)
# asyncio uses a child watcher: copy the status into the Popen[](#l1.8)
# object. On Python 3.6, it is required to avoid a ResourceWarning.[](#l1.9)
self._proc.returncode = returncode[](#l1.10) self._call(self._protocol.process_exited)[](#l1.11) self._try_finish()[](#l1.12)