summaryrefslogtreecommitdiffstats
path: root/Doc/library/subprocess.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-05-14 14:09:52 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-05-14 14:09:52 (GMT)
commitae9d193dc467eb1135f56523caa28c0ebce1ff15 (patch)
tree3e3e65f602f493b1c5ee805f3d423acc6e378d41 /Doc/library/subprocess.rst
parent23042cda40bdab21db36a92d5d2655046207f947 (diff)
downloadcpython-ae9d193dc467eb1135f56523caa28c0ebce1ff15.zip
cpython-ae9d193dc467eb1135f56523caa28c0ebce1ff15.tar.gz
cpython-ae9d193dc467eb1135f56523caa28c0ebce1ff15.tar.bz2
#21347: use string not list in shell=True example.
Patch by Akira.
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 ce3097b..854993c 100644
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -1013,7 +1013,7 @@ Replacing functions from the :mod:`popen2` module
(child_stdout, child_stdin) = popen2.popen2("somestring", bufsize, mode)
==>
- p = Popen(["somestring"], shell=True, bufsize=bufsize,
+ p = Popen("somestring", shell=True, bufsize=bufsize,
stdin=PIPE, stdout=PIPE, close_fds=True)
(child_stdout, child_stdin) = (p.stdout, p.stdin)