mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
High byte is the exit status.
This commit is contained in:
parent
b639c14c32
commit
fc9e08de3a
1 changed files with 1 additions and 1 deletions
|
@ -575,7 +575,7 @@ Return code handling translates as follows::
|
||||||
pipe = os.popen(cmd, 'w')
|
pipe = os.popen(cmd, 'w')
|
||||||
...
|
...
|
||||||
rc = pipe.close()
|
rc = pipe.close()
|
||||||
if rc is not None and rc % 256:
|
if rc is not None and rc >> 8:
|
||||||
print("There were some errors")
|
print("There were some errors")
|
||||||
==>
|
==>
|
||||||
process = Popen(cmd, 'w', stdin=PIPE)
|
process = Popen(cmd, 'w', stdin=PIPE)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue