equal
deleted
inserted
replaced
158 size = self.maxchunksize |
158 size = self.maxchunksize |
159 s = self._read(size, b'L') |
159 s = self._read(size, b'L') |
160 buf = s |
160 buf = s |
161 # keep asking for more until there's either no more or |
161 # keep asking for more until there's either no more or |
162 # we got a full line |
162 # we got a full line |
163 while s and s[-1] != b'\n': |
163 while s and not s.endswith(b'\n'): |
164 s = self._read(size, b'L') |
164 s = self._read(size, b'L') |
165 buf += s |
165 buf += s |
166 |
166 |
167 return buf |
167 return buf |
168 else: |
168 else: |