mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +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")
|
||||
==>
|
||||
p = Popen("mycmd" + " myarg", shell=True)
|
||||
sts = os.waitpid(p.pid, 0)
|
||||
sts = os.waitpid(p.pid, 0)[1]
|
||||
|
||||
Notes:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue