summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorStefan Krah <stefan@bytereef.org>2010-07-14 10:16:11 (GMT)
committerStefan Krah <stefan@bytereef.org>2010-07-14 10:16:11 (GMT)
commitfc9e08de3a05149c7f0b2334d88a7b80ca4063e3 (patch)
tree3e5e19788a5d3f8662a249346dbc380e4d33a51c /Doc
parentb639c14c32a737224382bfc5a690e0c05766e090 (diff)
downloadcpython-fc9e08de3a05149c7f0b2334d88a7b80ca4063e3.zip
cpython-fc9e08de3a05149c7f0b2334d88a7b80ca4063e3.tar.gz
cpython-fc9e08de3a05149c7f0b2334d88a7b80ca4063e3.tar.bz2
High byte is the exit status.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/subprocess.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index c7a349b..f75858d 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -575,7 +575,7 @@ Return code handling translates as follows::
pipe = os.popen(cmd, 'w')
...
rc = pipe.close()
- if rc is not None and rc % 256:
+ if rc is not None and rc >> 8:
print("There were some errors")
==>
process = Popen(cmd, 'w', stdin=PIPE)