Mercurial > public > mercurial-scm > hg
diff mercurial/util.py @ 8299:edd676eae7d7
util: kill unused Popen3
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 04 May 2009 14:22:33 -0500 |
parents | 7f27e69dd27f |
children | d2ad8c066676 |
line wrap: on
line diff
--- a/mercurial/util.py Mon May 04 14:21:43 2009 -0500 +++ b/mercurial/util.py Mon May 04 14:22:33 2009 -0500 @@ -48,16 +48,6 @@ stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) return p.stdin, p.stdout, p.stderr -def Popen3(cmd, capturestderr=False, bufsize=-1): - stderr = capturestderr and subprocess.PIPE or None - p = subprocess.Popen(cmd, shell=True, bufsize=bufsize, - close_fds=closefds, - stdin=subprocess.PIPE, stdout=subprocess.PIPE, - stderr=stderr) - p.fromchild = p.stdout - p.tochild = p.stdin - p.childerr = p.stderr - return p def version(): """Return version information if available."""