summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-07-16 07:38:35 +0000
committerGeorg Brandl <georg@python.org>2009-07-16 07:38:35 +0000
commit2e1285baee121bd0afc3fe0176b04ea5fbe8cd49 (patch)
tree393e34ce4acbbe99a2bd374a229a7eb3a3b3b2b7
parentda334249a7f4094deff7516ca1317f1230131052 (diff)
downloadcpython-git-2e1285baee121bd0afc3fe0176b04ea5fbe8cd49.tar.gz
#6481: fix typo in os.system() replacement.
-rw-r--r--Doc/library/subprocess.rst2
1 files changed, 1 insertions, 1 deletions
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: