Kaydet (Commit) fc9e08de authored tarafından Stefan Krah's avatar Stefan Krah

High byte is the exit status.

üst b639c14c
...@@ -575,7 +575,7 @@ Return code handling translates as follows:: ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment