#21347: use string not list in shell=True example.

Patch by Akira.
This commit is contained in:
R David Murray 2014-05-14 10:09:52 -04:00
parent 23042cda40
commit ae9d193dc4

View 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)