diff hglib/__init__.py @ 72:15485fa4b35e

util: introduce popen
author Idan Kamara <idankk86@gmail.com>
date Mon, 26 Sep 2011 22:37:44 +0300
parents d1f57f162274
children 07efbd3bd09a
line wrap: on
line diff
--- a/hglib/__init__.py	Mon Sep 26 22:25:36 2011 +0300
+++ b/hglib/__init__.py	Mon Sep 26 22:37:44 2011 +0300
@@ -14,9 +14,7 @@
                            insecure=insecure)
 
     args.insert(0, HGPATH)
-    proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
-                            close_fds=util.closefds)
-
+    proc = util.popen(args)
     out, err = proc.communicate()
     if proc.returncode:
         raise error.CommandError(args, proc.returncode, out, err)