From 0eb9ee97b8ab5328c0763b6272631642f7afa724 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Wed, 14 May 2014 10:09:21 -0400 Subject: [PATCH] #21347: use string not list in shell=True example. Patch by Akira. --- 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 1f754cb97b..114907f583 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -866,7 +866,7 @@ Replacing functions from the :mod:`popen2` module (child_stdout, child_stdin) = popen2.popen2("somestring", bufsize, mode) ==> - p = Popen(["somestring"], shell=True, bufsize=bufsize, + p = Popen("somestring", shell=True, bufsize=bufsize, stdin=PIPE, stdout=PIPE, close_fds=True) (child_stdout, child_stdin) = (p.stdout, p.stdin) -- 2.50.1