[Python-checkins] r82878 - in python/branches/release26-maint: Doc/library/subprocess.rst

stefan.krah python-checkins at python.org
Wed Jul 14 12:13:49 CEST 2010


Author: stefan.krah
Date: Wed Jul 14 12:13:49 2010
New Revision: 82878

Log:
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.
........


Modified:
   python/branches/release26-maint/   (props changed)
   python/branches/release26-maint/Doc/library/subprocess.rst

Modified: python/branches/release26-maint/Doc/library/subprocess.rst
==============================================================================
--- python/branches/release26-maint/Doc/library/subprocess.rst	(original)
+++ python/branches/release26-maint/Doc/library/subprocess.rst	Wed Jul 14 12:13:49 2010
@@ -513,7 +513,7 @@
    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)


More information about the Python-checkins mailing list