diff options
Diffstat (limited to 'Doc/library/asyncio-subprocess.rst')
-rw-r--r-- | Doc/library/asyncio-subprocess.rst | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Doc/library/asyncio-subprocess.rst b/Doc/library/asyncio-subprocess.rst index 51ce427..dc93a74 100644 --- a/Doc/library/asyncio-subprocess.rst +++ b/Doc/library/asyncio-subprocess.rst @@ -32,7 +32,7 @@ Create a subprocess: high-level API using Process Create a subprocess. The *limit* parameter sets the buffer limit passed to the - :class:`StreamReader`. See :meth:`BaseEventLoop.subprocess_exec` for other + :class:`StreamReader`. See :meth:`AbstractEventLoop.subprocess_exec` for other parameters. Return a :class:`~asyncio.subprocess.Process` instance. @@ -44,7 +44,7 @@ Create a subprocess: high-level API using Process Run the shell command *cmd*. The *limit* parameter sets the buffer limit passed to the - :class:`StreamReader`. See :meth:`BaseEventLoop.subprocess_shell` for other + :class:`StreamReader`. See :meth:`AbstractEventLoop.subprocess_shell` for other parameters. Return a :class:`~asyncio.subprocess.Process` instance. @@ -58,8 +58,8 @@ Create a subprocess: high-level API using Process This function is a :ref:`coroutine <coroutine>`. -Use the :meth:`BaseEventLoop.connect_read_pipe` and -:meth:`BaseEventLoop.connect_write_pipe` methods to connect pipes. +Use the :meth:`AbstractEventLoop.connect_read_pipe` and +:meth:`AbstractEventLoop.connect_write_pipe` methods to connect pipes. Create a subprocess: low-level API using subprocess.Popen @@ -67,7 +67,7 @@ Create a subprocess: low-level API using subprocess.Popen Run subprocesses asynchronously using the :mod:`subprocess` module. -.. coroutinemethod:: BaseEventLoop.subprocess_exec(protocol_factory, \*args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, \*\*kwargs) +.. coroutinemethod:: AbstractEventLoop.subprocess_exec(protocol_factory, \*args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, \*\*kwargs) Create a subprocess from one or more string arguments (character strings or bytes strings encoded to the :ref:`filesystem encoding @@ -87,19 +87,19 @@ Run subprocesses asynchronously using the :mod:`subprocess` module. * *stdin*: Either a file-like object representing the pipe to be connected to the subprocess's standard input stream using - :meth:`~BaseEventLoop.connect_write_pipe`, or the constant + :meth:`~AbstractEventLoop.connect_write_pipe`, or the constant :const:`subprocess.PIPE` (the default). By default a new pipe will be created and connected. * *stdout*: Either a file-like object representing the pipe to be connected to the subprocess's standard output stream using - :meth:`~BaseEventLoop.connect_read_pipe`, or the constant + :meth:`~AbstractEventLoop.connect_read_pipe`, or the constant :const:`subprocess.PIPE` (the default). By default a new pipe will be created and connected. * *stderr*: Either a file-like object representing the pipe to be connected to the subprocess's standard error stream using - :meth:`~BaseEventLoop.connect_read_pipe`, or one of the constants + :meth:`~AbstractEventLoop.connect_read_pipe`, or one of the constants :const:`subprocess.PIPE` (the default) or :const:`subprocess.STDOUT`. By default a new pipe will be created and connected. When :const:`subprocess.STDOUT` is specified, the subprocess's standard error @@ -116,7 +116,7 @@ Run subprocesses asynchronously using the :mod:`subprocess` module. See the constructor of the :class:`subprocess.Popen` class for parameters. -.. coroutinemethod:: BaseEventLoop.subprocess_shell(protocol_factory, cmd, \*, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, \*\*kwargs) +.. coroutinemethod:: AbstractEventLoop.subprocess_shell(protocol_factory, cmd, \*, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, \*\*kwargs) Create a subprocess from *cmd*, which is a character string or a bytes string encoded to the :ref:`filesystem encoding <filesystem-encoding>`, @@ -126,7 +126,7 @@ Run subprocesses asynchronously using the :mod:`subprocess` module. The *protocol_factory* must instanciate a subclass of the :class:`asyncio.SubprocessProtocol` class. - See :meth:`~BaseEventLoop.subprocess_exec` for more details about + See :meth:`~AbstractEventLoop.subprocess_exec` for more details about the remaining arguments. Returns a pair of ``(transport, protocol)``, where *transport* is an @@ -143,8 +143,8 @@ Run subprocesses asynchronously using the :mod:`subprocess` module. .. seealso:: - The :meth:`BaseEventLoop.connect_read_pipe` and - :meth:`BaseEventLoop.connect_write_pipe` methods. + The :meth:`AbstractEventLoop.connect_read_pipe` and + :meth:`AbstractEventLoop.connect_write_pipe` methods. Constants @@ -329,7 +329,7 @@ Subprocess using transport and protocol Example of a subprocess protocol using to get the output of a subprocess and to wait for the subprocess exit. The subprocess is created by the -:meth:`BaseEventLoop.subprocess_exec` method:: +:meth:`AbstractEventLoop.subprocess_exec` method:: import asyncio import sys |