Mercurial > python-hglib
diff hglib/client.py @ 72:15485fa4b35e
util: introduce popen
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Mon, 26 Sep 2011 22:37:44 +0300 |
parents | 91ffa1de398c |
children | ca5f8f43e585 |
line wrap: on
line diff
--- a/hglib/client.py Mon Sep 26 22:25:36 2011 +0300 +++ b/hglib/client.py Mon Sep 26 22:37:44 2011 +0300 @@ -19,14 +19,11 @@ args += ['-R', path] if configs: args += ['--config'] + configs - env = dict(os.environ) + env = {} if encoding: env['HGENCODING'] = encoding - self.server = subprocess.Popen(args, stdin=subprocess.PIPE, - stdout=subprocess.PIPE, env=env, - close_fds=util.closefds) - + self.server = util.popen(args, env) self._readhello() self._version = None