mercurial/httpclient/_readers.py
changeset 29442 456609cbd840
parent 29131 8a66eda46c98
equal deleted inserted replaced
29441:9e8d258708bb 29442:456609cbd840
    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):