From: R David Murray Date: Fri, 4 Sep 2015 14:00:22 +0000 (-0400) Subject: #24998: fix cut and paste error in subprocess example. X-Git-Tag: v2.7.11rc1~179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bda9bd1d1ccd3d40af82e4ec0b7767fe4eb2ad96;p=thirdparty%2FPython%2Fcpython.git #24998: fix cut and paste error in subprocess example. --- diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 114907f58368..01a791c76cc2 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -852,7 +852,7 @@ Return code handling translates as follows:: if rc is not None and rc >> 8: print "There were some errors" ==> - process = Popen("cmd", 'w', shell=True, stdin=PIPE) + process = Popen("cmd", shell=True, stdin=PIPE) ... process.stdin.close() if process.wait() != 0: