summaryrefslogtreecommitdiffstats
path: root/Doc/library/subprocess.rst
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2009-01-21 02:16:26 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2009-01-21 02:16:26 (GMT)
commit42ffbdb9038facbff1db28042a639611c2618ad0 (patch)
treeb6f6f94af572dac722cee13f7e3ce26f5df0b021 /Doc/library/subprocess.rst
parent9cb4277c60693835116e87fbf7762708b3cfad13 (diff)
downloadcpython-42ffbdb9038facbff1db28042a639611c2618ad0.zip
cpython-42ffbdb9038facbff1db28042a639611c2618ad0.tar.gz
cpython-42ffbdb9038facbff1db28042a639611c2618ad0.tar.bz2
Markup fixes
Diffstat (limited to 'Doc/library/subprocess.rst')
-rw-r--r--Doc/library/subprocess.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index 316ee80..9327f98 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -167,11 +167,12 @@ This module also defines two shortcut functions:
Run command with arguments and return its output as a byte string.
- If the exit code was non-zero it raises a CalledProcessError. The
- CalledProcessError object will have the return code in the returncode
- attribute and output in the output attribute.
+ If the exit code was non-zero it raises a :exc:`CalledProcessError`. The
+ :exc:`CalledProcessError` object will have the return code in the
+ :attr:`returncode`
+ attribute and output in the :attr:`output` 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_output(["ls", "-l", "/dev/null"])
'crw-rw-rw- 1 root root 1, 3 Oct 18 2007 /dev/null\n'