]> granicus.if.org Git - python/commitdiff
#21347: use string not list in shell=True example.
authorR David Murray <rdmurray@bitdance.com>
Wed, 14 May 2014 14:09:52 +0000 (10:09 -0400)
committerR David Murray <rdmurray@bitdance.com>
Wed, 14 May 2014 14:09:52 +0000 (10:09 -0400)
Patch by Akira.

Doc/library/subprocess.rst

index ce3097bee5f7ea878ba045f77094817a784cd750..854993cba0fa0c5a62ded63acda8a447bc858f18 100644 (file)
@@ -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)