Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c647cd

Browse files
committed
clarify the docs and new warning message.
1 parent 2f0fd0f commit 8c647cd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/subprocess.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ This module defines one class called :class:`Popen`:
160160

161161
.. versionchanged:: 3.2
162162
Callers should always specify a *close_fds* to avoid a DeprecationWarning.
163-
The default value for this argument will be changing in Python 3.3.
163+
The default behavior of this argument will be changing in Python 3.3.
164164

165165
If *shell* is :const:`True`, the specified command will be executed through the
166166
shell.

Lib/subprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,8 @@ def __init__(self, args, bufsize=0, executable=None,
623623
# Notification for http://bugs.python.org/issue7213 & issue2320
624624
warnings.warn(
625625
'The close_fds parameter was not specified. Its default'
626-
' will change from False to True in a future Python'
627-
' version. Most users should set it to True. Please'
626+
' behavior will change in a future Python version. '
627+
' Most users should set it to True. Please'
628628
' update your code explicitly set close_fds.',
629629
DeprecationWarning)
630630

0 commit comments

Comments
 (0)