From bda9bd1d1ccd3d40af82e4ec0b7767fe4eb2ad96 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Fri, 4 Sep 2015 10:00:22 -0400 Subject: #24998: fix cut and paste error in subprocess example. --- 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 114907f..01a791c 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: -- cgit v0.12