From: Stefan Krah Date: Wed, 14 Jul 2010 10:06:07 +0000 (+0000) Subject: High byte is the exit status. X-Git-Tag: v2.7.1rc1~599 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a253dc1da04fa05600039c0e19a9a13878524ecd;p=thirdparty%2FPython%2Fcpython.git High byte is the exit status. --- diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index b5e769cab596..3ca0db98cbad 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -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)