summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2015-09-04 10:01:19 -0400
committerR David Murray <rdmurray@bitdance.com>2015-09-04 10:01:19 -0400
commitdb6385c259b69ba95975b054e8bdb7614e8b0085 (patch)
treeb140921e9482929b55a725b610db5ae2594ef5a5
parent28dec4a9cb8971484c16e86538977f3072a564fe (diff)
downloadcpython-db6385c259b69ba95975b054e8bdb7614e8b0085.tar.gz
#24998: fix cut and paste error in subprocess example.
-rw-r--r--Doc/library/subprocess.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
index 36cbf3c5f3..9ac8882d32 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -1000,7 +1000,7 @@ Return code handling translates as follows::
if rc is not None and rc >> 8:
print("There were some errors")
==>
- process = Popen(cmd, 'w', stdin=PIPE)
+ process = Popen(cmd, stdin=PIPE)
...
process.stdin.close()
if process.wait() != 0: