Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae9d193

Browse files
committed
#21347: use string not list in shell=True example.
Patch by Akira.
1 parent 23042cd commit ae9d193

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/subprocess.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ Replacing functions from the :mod:`popen2` module
10131013

10141014
(child_stdout, child_stdin) = popen2.popen2("somestring", bufsize, mode)
10151015
==>
1016-
p = Popen(["somestring"], shell=True, bufsize=bufsize,
1016+
p = Popen("somestring", shell=True, bufsize=bufsize,
10171017
stdin=PIPE, stdout=PIPE, close_fds=True)
10181018
(child_stdout, child_stdin) = (p.stdout, p.stdin)
10191019

0 commit comments

Comments
 (0)