Work around heisenbug in Popen3.__del__
authorBrendan Cully <brendan@kublai.com>
Mon, 18 Jun 2007 14:52:31 -0700
changeset 4625 eaf87cd19337
parent 4624 23d9f0e66711
child 4627 d4e4d0f4fba4
Work around heisenbug in Popen3.__del__
mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -161,7 +161,7 @@ def cachefunc(func):
 
 def pipefilter(s, cmd):
     '''filter string S through command CMD, returning its output'''
-    (pout, pin) = popen2.popen2(cmd, -1, 'b')
+    (pin, pout) = os.popen2(cmd, 'b')
     def writer():
         try:
             pin.write(s)