mercurial/util.py
changeset 4625 eaf87cd19337
parent 4540 133a52d70958
child 4635 63b9d2deed48
equal deleted inserted replaced
4624:23d9f0e66711 4625:eaf87cd19337
   159 
   159 
   160     return f
   160     return f
   161 
   161 
   162 def pipefilter(s, cmd):
   162 def pipefilter(s, cmd):
   163     '''filter string S through command CMD, returning its output'''
   163     '''filter string S through command CMD, returning its output'''
   164     (pout, pin) = popen2.popen2(cmd, -1, 'b')
   164     (pin, pout) = os.popen2(cmd, 'b')
   165     def writer():
   165     def writer():
   166         try:
   166         try:
   167             pin.write(s)
   167             pin.write(s)
   168             pin.close()
   168             pin.close()
   169         except IOError, inst:
   169         except IOError, inst: