mirror of https://github.com/python/cpython
Make the references to Popen in the description of Call
and check_call into links.
This commit is contained in:
parent
7875ef67cd
commit
6dfe66298b
|
@ -186,7 +186,7 @@ This module also defines two shortcut functions:
|
||||||
Run command with arguments. Wait for command to complete, then return the
|
Run command with arguments. Wait for command to complete, then return the
|
||||||
:attr:`returncode` attribute.
|
:attr:`returncode` attribute.
|
||||||
|
|
||||||
The arguments are the same as for the Popen constructor. Example::
|
The arguments are the same as for the :class:`Popen` constructor. Example::
|
||||||
|
|
||||||
>>> retcode = subprocess.call(["ls", "-l"])
|
>>> retcode = subprocess.call(["ls", "-l"])
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ This module also defines two shortcut functions:
|
||||||
:exc:`CalledProcessError` object will have the return code in the
|
:exc:`CalledProcessError` object will have the return code in the
|
||||||
:attr:`returncode` attribute.
|
:attr:`returncode` attribute.
|
||||||
|
|
||||||
The arguments are the same as for the Popen constructor. Example::
|
The arguments are the same as for the :class:`Popen` constructor. Example::
|
||||||
|
|
||||||
>>> subprocess.check_call(["ls", "-l"])
|
>>> subprocess.check_call(["ls", "-l"])
|
||||||
0
|
0
|
||||||
|
|
Loading…
Reference in New Issue