Update of /cvsroot/python/python/dist/src/Doc/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21169/Doc/lib Modified Files: Tag: release24-maint libsubprocess.tex Log Message: Corrected example for replacing shell pipeline. Fixes bug 1073790. Index: libsubprocess.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/libsubprocess.tex,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -d -r1.2 -r1.2.2.1 --- libsubprocess.tex 7 Nov 2004 16:38:08 -0000 1.2 +++ libsubprocess.tex 30 Nov 2004 18:11:36 -0000 1.2.2.1 @@ -239,7 +239,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] \end{verbatim}
participants (1)
-
astrandï¼ users.sourceforge.net