util: remove unused bufsize argument in popen[23]
authorMartin Geisler <mg@lazybytes.net>
Sat, 09 May 2009 17:34:11 +0200
changeset 8340 fce065538bcf
parent 8339 f55869abb5c3
child 8341 493d23d923ea
child 9083 ec171737aaf1
util: remove unused bufsize argument in popen[23]
mercurial/util.py
--- a/mercurial/util.py	Sat May 09 17:32:57 2009 +0200
+++ b/mercurial/util.py	Sat May 09 17:34:11 2009 +0200
@@ -38,14 +38,12 @@
 
 import subprocess
 closefds = os.name == 'posix'
-def popen2(cmd, bufsize=-1):
-    p = subprocess.Popen(cmd, shell=True, bufsize=bufsize,
-                         close_fds=closefds,
+def popen2(cmd):
+    p = subprocess.Popen(cmd, shell=True, close_fds=closefds,
                          stdin=subprocess.PIPE, stdout=subprocess.PIPE)
     return p.stdin, p.stdout
-def popen3(cmd, bufsize=-1):
-    p = subprocess.Popen(cmd, shell=True, bufsize=bufsize,
-                         close_fds=closefds,
+def popen3(cmd):
+    p = subprocess.Popen(cmd, shell=True, close_fds=closefds,
                          stdin=subprocess.PIPE, stdout=subprocess.PIPE,
                          stderr=subprocess.PIPE)
     return p.stdin, p.stdout, p.stderr