Mercurial > hg
comparison mercurial/keepalive.py @ 19872:681f7b9213a4
check-code: check for spaces around = for named parameters
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 03 Oct 2013 14:50:47 +0200 |
parents | 5b1b0e4e6902 |
children | 232d437af120 |
comparison
equal
deleted
inserted
replaced
19871:6e74632170d3 | 19872:681f7b9213a4 |
---|---|
497 if 0 <= limit < len(self._rbuf): | 497 if 0 <= limit < len(self._rbuf): |
498 i = limit | 498 i = limit |
499 data, self._rbuf = self._rbuf[:i], self._rbuf[i:] | 499 data, self._rbuf = self._rbuf[:i], self._rbuf[i:] |
500 return data | 500 return data |
501 | 501 |
502 def readlines(self, sizehint = 0): | 502 def readlines(self, sizehint=0): |
503 total = 0 | 503 total = 0 |
504 list = [] | 504 list = [] |
505 while True: | 505 while True: |
506 line = self.readline() | 506 line = self.readline() |
507 if not line: | 507 if not line: |