From 2e1285baee121bd0afc3fe0176b04ea5fbe8cd49 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 16 Jul 2009 07:38:35 +0000 Subject: [PATCH] #6481: fix typo in os.system() replacement. --- Doc/library/subprocess.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.50.1