mirror of https://github.com/python/cpython
High byte is the exit status.
This commit is contained in:
parent
eefec7b857
commit
a253dc1da0
|
@ -551,7 +551,7 @@ Return code handling translates as follows::
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue