High byte is the exit status.

This commit is contained in:
Stefan Krah 2010-07-14 10:06:07 +00:00
parent eefec7b857
commit a253dc1da0
1 changed files with 1 additions and 1 deletions

View File

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