]> granicus.if.org Git - python/commit
asyncio: fix ResourceWarning related to subprocesses
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 20 May 2016 11:05:48 +0000 (13:05 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 20 May 2016 11:05:48 +0000 (13:05 +0200)
commitb0d43ce890adbcfea2e1dff7ba6e76c5c046b61c
tree89dbd5c5e651199e281ff2b817656d928eec209e
parent387e6e38175b853741c4f35e08791f0990bc0845
asyncio: fix ResourceWarning related to subprocesses

Issue #26741: asyncio: BaseSubprocessTransport._process_exited() now copies the
return code from the child watched to the returncode attribute of the Popen
object. On Python 3.6, it is required to avoid a ResourceWarning.
Lib/asyncio/base_subprocess.py