[Python-checkins] python/dist/src/Lib subprocess.py,1.8,1.8.2.1

astrand at users.sourceforge.net astrand at users.sourceforge.net
Tue Nov 30 19:11:41 CET 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21169/Lib

Modified Files:
      Tag: release24-maint
	subprocess.py 
Log Message:
Corrected example for replacing shell pipeline. Fixes bug 1073790.

Index: subprocess.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/subprocess.py,v
retrieving revision 1.8
retrieving revision 1.8.2.1
diff -u -d -r1.8 -r1.8.2.1
--- subprocess.py	7 Nov 2004 14:30:34 -0000	1.8
+++ subprocess.py	30 Nov 2004 18:11:37 -0000	1.8.2.1
@@ -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]
 
 



More information about the Python-checkins mailing list