commit | 6fdf3cbb13077d44f14251034a31b512ebc9005a | [log] [tgz] |
---|---|---|
author | Peter Astrand <astrand@lysator.liu.se> | Tue Nov 30 18:06:42 2004 +0000 |
committer | Peter Astrand <astrand@lysator.liu.se> | Tue Nov 30 18:06:42 2004 +0000 |
tree | d89309df200f469391cb8397544a881490023468 | |
parent | 4871535cfeff41747a0f7b9a3688c49a5df502ad [diff] [blame] |
Corrected example for replacing shell pipeline. Fixes bug 1073790.
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index db19d1f..8d0204e 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py
@@ -229,7 +229,7 @@ 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]