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

Skip to content

Commit 1f8a40b

Browse files
committed
remove the long obsolete mention of universal newlines mode only being
available when configured at compile time.
1 parent d312c74 commit 1f8a40b

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

Doc/library/subprocess.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,9 @@ default values. The arguments that are most commonly needed are:
238238

239239
.. note::
240240

241-
The *universal_newlines* feature is supported only if Python is built
242-
with universal newline support (the default). Also, the newlines
243-
attribute of the file objects :attr:`Popen.stdin`, :attr:`Popen.stdout`
244-
and :attr:`Popen.stderr` are not updated by the
245-
:meth:`Popen.communicate` method.
241+
The newlines attribute of the file objects :attr:`Popen.stdin`,
242+
:attr:`Popen.stdout` and :attr:`Popen.stderr` are not updated by
243+
the :meth:`Popen.communicate` method.
246244

247245
If *shell* is ``True``, the specified command will be executed through
248246
the shell. This can be useful if you are using Python primarily for the

Lib/subprocess.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,9 @@ class Popen(args, bufsize=0, executable=None,
108108
opened as a text files, but lines may be terminated by any of '\n',
109109
the Unix end-of-line convention, '\r', the old Macintosh convention or
110110
'\r\n', the Windows convention. All of these external representations
111-
are seen as '\n' by the Python program. Note: This feature is only
112-
available if Python is built with universal newline support (the
113-
default). Also, the newlines attribute of the file objects stdout,
114-
stdin and stderr are not updated by the communicate() method.
111+
are seen as '\n' by the Python program. Also, the newlines attribute
112+
of the file objects stdout, stdin and stderr are not updated by the
113+
communicate() method.
115114
116115
The startupinfo and creationflags, if given, will be passed to the
117116
underlying CreateProcess() function. They can specify things such as

0 commit comments

Comments
 (0)