From: R David Murray Date: Wed, 14 May 2014 14:09:52 +0000 (-0400) Subject: #21347: use string not list in shell=True example. X-Git-Tag: v3.5.0a1~1660^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae9d193dc467eb1135f56523caa28c0ebce1ff15;p=python #21347: use string not list in shell=True example. Patch by Akira. --- diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index ce3097bee5..854993cba0 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)