util: kill unused Popen3
authorMatt Mackall <mpm@selenic.com>
Mon, 04 May 2009 14:22:33 -0500
changeset 8299 edd676eae7d7
parent 8298 9542f4c3fa1b
child 8300 947cb53dbeed
util: kill unused Popen3
mercurial/util.py
--- 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."""