comparison mercurial/httpclient/_readers.py @ 29442:456609cbd840

httpclient: update to 54868ef054d2 of httpplus As of that revision, httpplus fully supports Python 3, including mimicing all the subtle behavior changes around headers in Python 3's http.client.
author Augie Fackler <raf@durin42.com>
date Mon, 27 Jun 2016 11:53:50 -0400
parents 8a66eda46c98
children
comparison
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):