]> granicus.if.org Git - python/commit
issue7213 + issue2320: Cause a DeprecationWarning if the close_fds argument is
authorGregory P. Smith <greg@mad-scientist.com>
Sat, 4 Dec 2010 09:10:44 +0000 (09:10 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sat, 4 Dec 2010 09:10:44 +0000 (09:10 +0000)
commitd23047b62c6f885def9020bd9b304110f9b9c52d
tree4adeb352a619ce0ce869f93ea792d6ab8403ee64
parent35f08f0f844186f3a3f3a4dd477ea22d589886de
issue7213 + issue2320: Cause a DeprecationWarning if the close_fds argument is
not passed to subprocess.Popen as the default value will be changing in a
future Python to the safer and more often desired value of True.

DeprecationWarnings that show up in a lot of existing code are controversial
and have caused pain in the past.  I'd like to leave this on for 3.2 beta1 and
see how things go.  We can remove the warning if it is deemed too noisy during
any betas.  (case study: the md5 and sha module DeprecationWarnings are loathed
around the world as those modules were never going to be removed in 2.x and
2to3 has a fixer for code that uses them)
Doc/library/subprocess.rst
Lib/subprocess.py
Lib/test/test_subprocess.py