From 6fdf3cbb13077d44f14251034a31b512ebc9005a Mon Sep 17 00:00:00 2001 From: Peter Astrand Date: Tue, 30 Nov 2004 18:06:42 +0000 Subject: Corrected example for replacing shell pipeline. Fixes bug 1073790. --- Lib/subprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/subprocess.py') diff --git a/Lib/subprocess.py b/Lib/subprocess.py index db19d1ff688..8d0204e25d8 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -229,7 +229,7 @@ Replacing shell pipe line output=`dmesg | grep hda` ==> p1 = Popen(["dmesg"], stdout=PIPE) -p2 = Popen(["grep", "hda"], stdin=p1.stdout) +p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE) output = p2.communicate()[0] -- cgit v1.2.3