[Python-checkins] r82879 - python/branches/py3k/Doc/library/subprocess.rst
stefan.krah
python-checkins at python.org
Wed Jul 14 12:16:11 CEST 2010
Author: stefan.krah
Date: Wed Jul 14 12:16:11 2010
New Revision: 82879
Log:
High byte is the exit status.
Modified:
python/branches/py3k/Doc/library/subprocess.rst
Modified: python/branches/py3k/Doc/library/subprocess.rst
==============================================================================
--- python/branches/py3k/Doc/library/subprocess.rst (original)
+++ python/branches/py3k/Doc/library/subprocess.rst Wed Jul 14 12:16:11 2010
@@ -575,7 +575,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', stdin=PIPE)
More information about the Python-checkins
mailing list