[Python-checkins] cpython (2.7): #21347: use string not list in shell=True example.

r.david.murray python-checkins at python.org
Wed May 14 16:10:38 CEST 2014


http://hg.python.org/cpython/rev/5ef9a2c711f5
changeset:   90694:5ef9a2c711f5
branch:      2.7
parent:      90691:7b5265752942
user:        R David Murray <rdmurray at bitdance.com>
date:        Wed May 14 10:09:21 2014 -0400
summary:
  #21347: use string not list in shell=True example.

Patch by Akira.

files:
  Doc/library/subprocess.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst
--- a/Doc/library/subprocess.rst
+++ b/Doc/library/subprocess.rst
@@ -866,7 +866,7 @@
 
    (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)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list