mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
#6481: fix typo in os.system() replacement.
This commit is contained in:
parent
da334249a7
commit
2e1285baee
1 changed files with 1 additions and 1 deletions
|
@ -404,7 +404,7 @@ Replacing :func:`os.system`
|
||||||
sts = os.system("mycmd" + " myarg")
|
sts = os.system("mycmd" + " myarg")
|
||||||
==>
|
==>
|
||||||
p = Popen("mycmd" + " myarg", shell=True)
|
p = Popen("mycmd" + " myarg", shell=True)
|
||||||
sts = os.waitpid(p.pid, 0)
|
sts = os.waitpid(p.pid, 0)[1]
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue