diff options
author | Stefan Krah <stefan@bytereef.org> | 2010-07-14 10:19:40 (GMT) |
---|---|---|
committer | Stefan Krah <stefan@bytereef.org> | 2010-07-14 10:19:40 (GMT) |
commit | 5a5031f5350805e5d495afb1237414b922378195 (patch) | |
tree | 2888ad2b332e4fb5ed1c752205d7b92ca09d9fb8 | |
parent | 94ee95951dce510504c8840d830a9b10b74b16fe (diff) | |
download | cpython-5a5031f5350805e5d495afb1237414b922378195.zip cpython-5a5031f5350805e5d495afb1237414b922378195.tar.gz cpython-5a5031f5350805e5d495afb1237414b922378195.tar.bz2 |
Merged revisions 82879 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r82879 | stefan.krah | 2010-07-14 12:16:11 +0200 (Wed, 14 Jul 2010) | 3 lines
High byte is the exit status.
........
-rw-r--r-- | Doc/library/subprocess.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 2c39551..edba7a7 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -540,7 +540,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', stdin=PIPE) |