#6481: fix typo in os.system() replacement.

This commit is contained in:
Georg Brandl 2009-07-16 07:38:35 +00:00
parent da334249a7
commit 2e1285baee
1 changed files with 1 additions and 1 deletions

View File

@ -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: