[Python-checkins] r82877 - python/branches/release27-maint/Doc/library/subprocess.rst

stefan.krah python-checkins at python.org
Wed Jul 14 12:06:07 CEST 2010


Author: stefan.krah
Date: Wed Jul 14 12:06:07 2010
New Revision: 82877

Log:
High byte is the exit status.



Modified:
   python/branches/release27-maint/Doc/library/subprocess.rst

Modified: python/branches/release27-maint/Doc/library/subprocess.rst
==============================================================================
--- python/branches/release27-maint/Doc/library/subprocess.rst	(original)
+++ python/branches/release27-maint/Doc/library/subprocess.rst	Wed Jul 14 12:06:07 2010
@@ -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)


More information about the Python-checkins mailing list