changeset 8299:edd676eae7d7

util: kill unused Popen3
author Matt Mackall <mpm@selenic.com>
date Mon, 04 May 2009 14:22:33 -0500
parents 9542f4c3fa1b
children 947cb53dbeed
files mercurial/util.py
diffstat 1 files changed, 0 insertions(+), 10 deletions(-) [+]
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."""