##// END OF EJS Templates
Backed out changeset fce065538bcf: it caused a 5x performance regression on OS X
Bryan O'Sullivan -
r9083:ec171737 default
parent child Browse files
Show More
@@ -38,12 +38,14 b' def _fastsha1(s):'
38 38
39 39 import subprocess
40 40 closefds = os.name == 'posix'
41 def popen2(cmd):
42 p = subprocess.Popen(cmd, shell=True, close_fds=closefds,
41 def popen2(cmd, bufsize=-1):
42 p = subprocess.Popen(cmd, shell=True, bufsize=bufsize,
43 close_fds=closefds,
43 44 stdin=subprocess.PIPE, stdout=subprocess.PIPE)
44 45 return p.stdin, p.stdout
45 def popen3(cmd):
46 p = subprocess.Popen(cmd, shell=True, close_fds=closefds,
46 def popen3(cmd, bufsize=-1):
47 p = subprocess.Popen(cmd, shell=True, bufsize=bufsize,
48 close_fds=closefds,
47 49 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
48 50 stderr=subprocess.PIPE)
49 51 return p.stdin, p.stdout, p.stderr
General Comments 0
You need to be logged in to leave comments. Login now