summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libsubprocess.tex
diff options
context:
space:
mode:
authorPeter Astrand <astrand@lysator.liu.se>2006-07-14 14:04:45 (GMT)
committerPeter Astrand <astrand@lysator.liu.se>2006-07-14 14:04:45 (GMT)
commit7d1d43630e117fdc3ccb0a8c6a9b31ab7d443016 (patch)
tree4df183d0c83a0bbe980f6cb76de64a9f2fef0c79 /Doc/lib/libsubprocess.tex
parent8c051da2cfee6f0347970386465fb0831a4e179f (diff)
downloadcpython-7d1d43630e117fdc3ccb0a8c6a9b31ab7d443016.zip
cpython-7d1d43630e117fdc3ccb0a8c6a9b31ab7d443016.tar.gz
cpython-7d1d43630e117fdc3ccb0a8c6a9b31ab7d443016.tar.bz2
Bug #1223937: CalledProcessError.errno -> CalledProcessError.returncode.
Diffstat (limited to 'Doc/lib/libsubprocess.tex')
-rw-r--r--Doc/lib/libsubprocess.tex7
1 files changed, 3 insertions, 4 deletions
diff --git a/Doc/lib/libsubprocess.tex b/Doc/lib/libsubprocess.tex
index bde92eb..9ea44dc 100644
--- a/Doc/lib/libsubprocess.tex
+++ b/Doc/lib/libsubprocess.tex
@@ -140,7 +140,7 @@ The arguments are the same as for the Popen constructor. Example:
Run command with arguments. Wait for command to complete. If the exit
code was zero then return, otherwise raise \exception{CalledProcessError.}
The \exception{CalledProcessError} object will have the return code in the
-\member{errno} attribute.
+\member{returncode} attribute.
The arguments are the same as for the Popen constructor. Example:
@@ -164,9 +164,8 @@ should prepare for \exception{OSError} exceptions.
A \exception{ValueError} will be raised if \class{Popen} is called
with invalid arguments.
-check_call() will raise \exception{CalledProcessError}, which is a
-subclass of \exception{OSError}, if the called process returns a
-non-zero return code.
+check_call() will raise \exception{CalledProcessError}, if the called
+process returns a non-zero return code.
\subsubsection{Security}