mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
parent
23042cda40
commit
ae9d193dc4
1 changed files with 1 additions and 1 deletions
|
@ -1013,7 +1013,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