[Python-checkins] python/nondist/peps pep-0324.txt,1.6,1.7
astrand at users.sourceforge.net
astrand at users.sourceforge.net
Sat Nov 27 08:44:13 CET 2004
Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32293
Modified Files:
pep-0324.txt
Log Message:
Corrected example "replacing shell pipe line".
Index: pep-0324.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0324.txt,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- pep-0324.txt 12 Oct 2004 16:37:47 -0000 1.6
+++ pep-0324.txt 27 Nov 2004 07:44:10 -0000 1.7
@@ -354,7 +354,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