equal
deleted
inserted
replaced
216 sin.write(data) |
216 sin.write(data) |
217 sin.close() |
217 sin.close() |
218 body = sout.read() |
218 body = sout.read() |
219 else: |
219 else: |
220 urlopener = urlmod.opener(repo.ui, authinfo) |
220 urlopener = urlmod.opener(repo.ui, authinfo) |
221 request = util.urlreq.request(url, data=data) |
221 request = util.urlreq.request(pycompat.strurl(url), data=data) |
222 with contextlib.closing(urlopener.open(request)) as rsp: |
222 with contextlib.closing(urlopener.open(request)) as rsp: |
223 body = rsp.read() |
223 body = rsp.read() |
224 repo.ui.debug(b'Conduit Response: %s\n' % body) |
224 repo.ui.debug(b'Conduit Response: %s\n' % body) |
225 parsed = pycompat.rapply( |
225 parsed = pycompat.rapply( |
226 lambda x: encoding.unitolocal(x) if isinstance(x, pycompat.unicode) |
226 lambda x: encoding.unitolocal(x) if isinstance(x, pycompat.unicode) |