mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Merge: #21347: use string not list in shell=True example.
This commit is contained in:
commit
37f524f001
1 changed files with 1 additions and 1 deletions
|
@ -1014,7 +1014,7 @@ Replacing functions from the :mod:`popen2` module
|
||||||
|
|
||||||
(child_stdout, child_stdin) = popen2.popen2("somestring", bufsize, mode)
|
(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)
|
stdin=PIPE, stdout=PIPE, close_fds=True)
|
||||||
(child_stdout, child_stdin) = (p.stdout, p.stdin)
|
(child_stdout, child_stdin) = (p.stdout, p.stdin)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue