High byte is the exit status.

This commit is contained in:
Stefan Krah 2010-07-14 10:16:11 +00:00
parent b639c14c32
commit fc9e08de3a

View File

@ -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)