diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index ffa880fa00d..6f2d55b145b 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -513,7 +513,7 @@ Return code handling translates as follows:: pipe = os.popen("cmd", 'w') ... rc = pipe.close() - if rc != 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)