commit | a253dc1da04fa05600039c0e19a9a13878524ecd | [log] [tgz] |
---|---|---|
author | Stefan Krah <stefan@bytereef.org> | Wed Jul 14 10:06:07 2010 +0000 |
committer | Stefan Krah <stefan@bytereef.org> | Wed Jul 14 10:06:07 2010 +0000 |
tree | a5c5f58b4a7982b6eb197de48a273ed7c5e205ba | |
parent | eefec7b85793b08ed5a6fc5d2cfd0eb214f7e139 [diff] [blame] |
High byte is the exit status.
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index b5e769c..3ca0db9 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst
@@ -551,7 +551,7 @@ 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', shell=True, stdin=PIPE)