#6481: fix typo in os.system() replacement.
This commit is contained in:
parent
da334249a7
commit
2e1285baee
|
@ -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…
Reference in New Issue