##// END OF EJS Templates
util: remove unused bufsize argument in popen[23]
Martin Geisler -
r8340:fce06553 default
parent child Browse files
Show More
@@ -38,14 +38,12 b' def _fastsha1(s):'
38
38
39 import subprocess
39 import subprocess
40 closefds = os.name == 'posix'
40 closefds = os.name == 'posix'
41 def popen2(cmd, bufsize=-1):
41 def popen2(cmd):
42 p = subprocess.Popen(cmd, shell=True, bufsize=bufsize,
42 p = subprocess.Popen(cmd, shell=True, close_fds=closefds,
43 close_fds=closefds,
44 stdin=subprocess.PIPE, stdout=subprocess.PIPE)
43 stdin=subprocess.PIPE, stdout=subprocess.PIPE)
45 return p.stdin, p.stdout
44 return p.stdin, p.stdout
46 def popen3(cmd, bufsize=-1):
45 def popen3(cmd):
47 p = subprocess.Popen(cmd, shell=True, bufsize=bufsize,
46 p = subprocess.Popen(cmd, shell=True, close_fds=closefds,
48 close_fds=closefds,
49 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
47 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
50 stderr=subprocess.PIPE)
48 stderr=subprocess.PIPE)
51 return p.stdin, p.stdout, p.stderr
49 return p.stdin, p.stdout, p.stderr
General Comments 0
You need to be logged in to leave comments. Login now