]> 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:21 +0000 (10:09 -0400)
committerR David Murray <rdmurray@bitdance.com>
Wed, 14 May 2014 14:09:21 +0000 (10:09 -0400)
Patch by Akira.

Doc/library/subprocess.rst

index 1f754cb97bf4ce4de349bc234221a3d392bedf5c..114907f583689afe0466d83e9f3042b087012c52 100644 (file)
@@ -866,7 +866,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)