summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Krah <stefan@bytereef.org>2010-07-14 10:13:49 (GMT)
committerStefan Krah <stefan@bytereef.org>2010-07-14 10:13:49 (GMT)
commit3e4b1a2fdd3ca1fa70db9b96bdf7d9ecb38ec2fb (patch)
tree31c6edfc02b9f15a2d68fc35b2112e2552a85209
parenta729721628a2e0e311d5fdf646e141759f88a7b6 (diff)
downloadcpython-3e4b1a2fdd3ca1fa70db9b96bdf7d9ecb38ec2fb.zip
cpython-3e4b1a2fdd3ca1fa70db9b96bdf7d9ecb38ec2fb.tar.gz
cpython-3e4b1a2fdd3ca1fa70db9b96bdf7d9ecb38ec2fb.tar.bz2
Merged revisions 82877 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint ........ r82877 | stefan.krah | 2010-07-14 12:06:07 +0200 (Wed, 14 Jul 2010) | 3 lines High byte is the exit status. ........
-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 ffa880f..6f2d55b 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -513,7 +513,7 @@ Return code handling translates as follows::
pipe = os.popen("cmd", 'w')
...
rc = pipe.close()
- if rc != None and rc % 256:
+ if rc is not None and rc >> 8:
print "There were some errors"
==>
process = Popen("cmd", 'w', shell=True, stdin=PIPE)