[Python-checkins] r74022 - python/trunk/Doc/library/subprocess.rst
georg.brandl
python-checkins at python.org
Thu Jul 16 09:38:35 CEST 2009
Author: georg.brandl
Date: Thu Jul 16 09:38:35 2009
New Revision: 74022
Log:
#6481: fix typo in os.system() replacement.
Modified:
python/trunk/Doc/library/subprocess.rst
Modified: python/trunk/Doc/library/subprocess.rst
==============================================================================
--- python/trunk/Doc/library/subprocess.rst (original)
+++ python/trunk/Doc/library/subprocess.rst Thu Jul 16 09:38:35 2009
@@ -404,7 +404,7 @@
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:
More information about the Python-checkins
mailing list