diff hglib/util.py @ 62:d1f57f162274

closefds on posix when using subprocess see added test for a clarification on why this is needed
author Idan Kamara <idankk86@gmail.com>
date Fri, 19 Aug 2011 22:24:14 +0300
parents 3d7e0325ba1c
children 15485fa4b35e
line wrap: on
line diff
--- a/hglib/util.py	Fri Aug 19 22:27:40 2011 +0300
+++ b/hglib/util.py	Fri Aug 19 22:24:14 2011 +0300
@@ -1,4 +1,6 @@
-import itertools, cStringIO, error
+import itertools, cStringIO, error, os
+
+closefds = os.name == 'posix'
 
 def grouper(n, iterable):
     ''' list(grouper(2, range(4))) -> [(0, 1), (2, 3)] '''