]> granicus.if.org Git - python/commitdiff
Merged revisions 82877 via svnmerge from
authorStefan Krah <stefan@bytereef.org>
Wed, 14 Jul 2010 10:13:49 +0000 (10:13 +0000)
committerStefan Krah <stefan@bytereef.org>
Wed, 14 Jul 2010 10:13:49 +0000 (10:13 +0000)
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.
........

Doc/library/subprocess.rst

index ffa880fa00d1775add8a8baed55b04faac70db96..6f2d55b145b090f8fd7b4bb0b4f44059bcd987f7 100644 (file)
@@ -513,7 +513,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', shell=True, stdin=PIPE)