]> granicus.if.org Git - python/commitdiff
Merged revisions 82879 via svnmerge from
authorStefan Krah <stefan@bytereef.org>
Wed, 14 Jul 2010 10:19:40 +0000 (10:19 +0000)
committerStefan Krah <stefan@bytereef.org>
Wed, 14 Jul 2010 10:19:40 +0000 (10:19 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r82879 | stefan.krah | 2010-07-14 12:16:11 +0200 (Wed, 14 Jul 2010) | 3 lines

  High byte is the exit status.
........

Doc/library/subprocess.rst

index 2c395518e84648e8141fc596962764bc66495ab5..edba7a7f65ffba18541720b7f57d73a43f0bb2d7 100644 (file)
@@ -540,7 +540,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', stdin=PIPE)