mirror of
https://github.com/python/cpython.git
synced 2024-11-25 02:44:06 +08:00
High byte is the exit status.
This commit is contained in:
parent
b639c14c32
commit
fc9e08de3a
@ -575,7 +575,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', stdin=PIPE)
|
||||
|
Loading…
Reference in New Issue
Block a user