equal
deleted
inserted
replaced
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 |