commit | bafa8487f77fa076de3a06755399daf81cb75598 | [log] [tgz] |
---|---|---|
author | Giampaolo Rodola <g.rodola@gmail.com> | Tue Jan 29 22:14:24 2019 +0100 |
committer | Gregory P. Smith <greg@krypto.org> | Tue Jan 29 13:14:24 2019 -0800 |
tree | 8c8ace269bfe20263047098a1e612930c2ca82a4 | |
parent | 742d768656512a469ce9571b1cbd777def7bc5ea [diff] |
subprocess: close pipes/fds by using ExitStack (GH-11686) Close pipes/fds in subprocess by using ExitStack. "In case of premature failure on X.Close() or os.close(X) the remaining pipes/fds will remain "open". Perhaps it makes sense to use contextlib.ExitStack." - Rationale: https://github.com/python/cpython/pull/11575#discussion_r250288394