# HG changeset patch # User Martin Geisler # Date 2009-05-09 15:34:11 # Node ID fce065538bcf858c00731fd2ca77ba631553fdd9 # Parent f55869abb5c3ab8b9ec610a5f20aedd433c0215a util: remove unused bufsize argument in popen[23] diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -38,14 +38,12 @@ def _fastsha1(s): 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