summaryrefslogtreecommitdiffstats
path: root/Doc/library/subprocess.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2015-09-04 14:01:19 (GMT)
committerR David Murray <rdmurray@bitdance.com>2015-09-04 14:01:19 (GMT)
commit17227a733439731d73d14a17df6222bbde8b196f (patch)
tree77fc98fe7d7f22df8f2eb7090e5311e3a76b616d /Doc/library/subprocess.rst
parent4fda56f44b83da5d0f39d2742bb9ff065c64211c (diff)
downloadcpython-17227a733439731d73d14a17df6222bbde8b196f.zip
cpython-17227a733439731d73d14a17df6222bbde8b196f.tar.gz
cpython-17227a733439731d73d14a17df6222bbde8b196f.tar.bz2
#24998: fix cut and paste error in subprocess example.
Diffstat (limited to 'Doc/library/subprocess.rst')
-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 36cbf3c..9ac8882 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: