[Python-checkins] cpython (3.4): #24998: fix cut and paste error in subprocess example.
r.david.murray
python-checkins at python.org
Fri Sep 4 16:03:44 CEST 2015
https://hg.python.org/cpython/rev/47e711a7416b
changeset: 97668:47e711a7416b
branch: 3.4
parent: 97664:b4830b9f8c10
user: R David Murray <rdmurray at bitdance.com>
date: Fri Sep 04 10:01:19 2015 -0400
summary:
#24998: fix cut and paste error in subprocess example.
files:
Doc/library/subprocess.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -1000,7 +1000,7 @@
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:
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list