]> granicus.if.org Git - python/commit
bpo-34044: subprocess.Popen copies startupinfo (GH-8090) (GH-8121)
authorVictor Stinner <vstinner@redhat.com>
Thu, 5 Jul 2018 21:15:28 +0000 (23:15 +0200)
committerGitHub <noreply@github.com>
Thu, 5 Jul 2018 21:15:28 +0000 (23:15 +0200)
commit29be3bd3c9aed0190e60096a603120cacda82375
tree7e0ecd0f3664ef04e675f60ed1c7f118bd334085
parentf5770f354cb982303237d581ad2b296486475965
bpo-34044: subprocess.Popen copies startupinfo (GH-8090) (GH-8121)

subprocess.Popen now copies the startupinfo argument to leave it
unchanged: it will modify the copy, so that the same STARTUPINFO
object can be used multiple times.

Add subprocess.STARTUPINFO._copy() private method.

Python 3.7 backport from master makes the copy() private: renamed to
_copy().

(cherry picked from commit 483422f57e5d8c8bf8820fec29fc9b96bb15d4ef)
Lib/subprocess.py
Lib/test/test_subprocess.py
Misc/NEWS.d/next/Library/2018-07-04-17-14-26.bpo-34044.KWAu4y.rst [new file with mode: 0644]