commit | fc9e08de3a05149c7f0b2334d88a7b80ca4063e3 | [log] [tgz] |
---|---|---|
author | Stefan Krah <stefan@bytereef.org> | Wed Jul 14 10:16:11 2010 +0000 |
committer | Stefan Krah <stefan@bytereef.org> | Wed Jul 14 10:16:11 2010 +0000 |
tree | 3e5e19788a5d3f8662a249346dbc380e4d33a51c | |
parent | b639c14c32a737224382bfc5a690e0c05766e090 [diff] |
High byte is the exit status.
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index c7a349b..f75858d 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst
@@ -575,7 +575,7 @@ 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)