comparison mercurial/util.py @ 4625:eaf87cd19337

Work around heisenbug in Popen3.__del__
author Brendan Cully <brendan@kublai.com>
date Mon, 18 Jun 2007 14:52:31 -0700
parents 133a52d70958
children 63b9d2deed48
comparison
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: