summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2015-09-04 14:00:22 (GMT)
committerR David Murray <rdmurray@bitdance.com>2015-09-04 14:00:22 (GMT)
commitbda9bd1d1ccd3d40af82e4ec0b7767fe4eb2ad96 (patch)
tree6c5435daa239b5a82642b4ea1248e1907f83a022
parent99c1a6d5f1b83c51abb5205d3ded3db841ae4fe6 (diff)
downloadcpython-bda9bd1d1ccd3d40af82e4ec0b7767fe4eb2ad96.zip
cpython-bda9bd1d1ccd3d40af82e4ec0b7767fe4eb2ad96.tar.gz
cpython-bda9bd1d1ccd3d40af82e4ec0b7767fe4eb2ad96.tar.bz2
#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 114907f..01a791c 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -852,7 +852,7 @@ Return code handling translates as follows::
if rc is not None and rc >> 8:
print "There were some errors"
==>
- process = Popen("cmd", 'w', shell=True, stdin=PIPE)
+ process = Popen("cmd", shell=True, stdin=PIPE)
...
process.stdin.close()
if process.wait() != 0: