]> granicus.if.org Git - python/commitdiff
#6481: fix typo in os.system() replacement.
authorGeorg Brandl <georg@python.org>
Thu, 16 Jul 2009 07:38:35 +0000 (07:38 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 16 Jul 2009 07:38:35 +0000 (07:38 +0000)
Doc/library/subprocess.rst

index b903c8caf7b8bf2b40cf10559812e4ca14074dfd..09ae62bcbfb76b180f0bced9b22482f0139bb8ad 100644 (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: