comparison mercurial/util.py @ 25671:d5ac3bebaf2a

bufferedinputpipe: remove an outdate comment This comment is the remains of a intermediate implementation using self._buffer += data This implementation never made it to the repository and we can safely drop the comment.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Sat, 27 Jun 2015 11:51:25 -0700
parents 328739ea70c3
children 050dc6eabc92
comparison
equal deleted inserted replaced
25670:6368c51cfad6 25671:d5ac3bebaf2a
325 """read data to the buffer""" 325 """read data to the buffer"""
326 data = os.read(self._input.fileno(), _chunksize) 326 data = os.read(self._input.fileno(), _chunksize)
327 if not data: 327 if not data:
328 self._eof = True 328 self._eof = True
329 else: 329 else:
330 # inefficient add
331 self._buffer.append(data) 330 self._buffer.append(data)
332 331
333 def popen2(cmd, env=None, newlines=False): 332 def popen2(cmd, env=None, newlines=False):
334 # Setting bufsize to -1 lets the system decide the buffer size. 333 # Setting bufsize to -1 lets the system decide the buffer size.
335 # The default for bufsize is 0, meaning unbuffered. This leads to 334 # The default for bufsize is 0, meaning unbuffered. This leads to