From 17227a733439731d73d14a17df6222bbde8b196f Mon Sep 17 00:00:00 2001 From: R David Murray Date: Fri, 4 Sep 2015 10:01:19 -0400 Subject: [PATCH] #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 36cbf3c5f3..9ac8882d32 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -1000,7 +1000,7 @@ Return code handling translates as follows:: if rc is not None and rc >> 8: print("There were some errors") ==> - process = Popen(cmd, 'w', stdin=PIPE) + process = Popen(cmd, stdin=PIPE) ... process.stdin.close() if process.wait() != 0: -- 2.40.0