mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
#6481: fix typo in os.system() replacement.
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user