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

Skip to content

Commit e11787a

Browse files
committed
#2683: communicate() takes bytes.
1 parent de9c869 commit e11787a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/subprocess.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ This module defines one class called :class:`Popen`:
102102

103103
This feature is only available if Python is built with universal newline support
104104
(the default). Also, the newlines attribute of the file objects :attr:`stdout`,
105-
:attr:`stdin` and :attr:`stderr` are not updated by the communicate() method.
105+
:attr:`stdin` and :attr:`stderr` are not updated by the :meth:`communicate` method.
106106

107107
The *startupinfo* and *creationflags*, if given, will be passed to the
108108
underlying CreateProcess() function. They can specify things such as appearance
@@ -215,7 +215,7 @@ Instances of the :class:`Popen` class have the following methods:
215215

216216
Interact with process: Send data to stdin. Read data from stdout and stderr,
217217
until end-of-file is reached. Wait for process to terminate. The optional
218-
*input* argument should be a string to be sent to the child process, or
218+
*input* argument should be a byte string to be sent to the child process, or
219219
``None``, if no data should be sent to the child.
220220

221221
:meth:`communicate` returns a tuple ``(stdout, stderr)``.

0 commit comments

Comments
 (0)