equal
deleted
inserted
replaced
96 b = nb |
96 b = nb |
97 blocks.append(b) |
97 blocks.append(b) |
98 need -= len(b) |
98 need -= len(b) |
99 if need == 0: |
99 if need == 0: |
100 break |
100 break |
101 result = ''.join(blocks) |
101 result = b''.join(blocks) |
102 assert len(result) == amt or (self._finished and len(result) < amt) |
102 assert len(result) == amt or (self._finished and len(result) < amt) |
103 |
103 |
104 return result |
104 return result |
105 |
105 |
106 def readto(self, delimstr, blocks = None): |
106 def readto(self, delimstr, blocks = None): |