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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e1285baee121bd0afc3fe0176b04ea5fbe8cd49;p=thirdparty%2FPython%2Fcpython.git #6481: fix typo in os.system() replacement. --- diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index b903c8caf7b8..09ae62bcbfb7 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: