From: Georg Brandl Date: Thu, 16 Jul 2009 07:38:35 +0000 (+0000) Subject: #6481: fix typo in os.system() replacement. X-Git-Tag: v2.7a1~765 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e1285baee121bd0afc3fe0176b04ea5fbe8cd49;p=python #6481: fix typo in os.system() replacement. --- diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index b903c8caf7..09ae62bcbf 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -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: