D6044: phabricator: convert conduit response JSON unicode to bytes inside callconduit

Yuya Nishihara yuya at tcha.org
Sun Mar 3 04:34:35 EST 2019

> -    parsed = json.loads(body)
> +    parsed = pycompat.rapply(lambda x: encoding.unitolocal(x)
> +                             if isinstance(x, unicode) else x, json.loads(body))


Perhaps some of `r''` would have to be changed to `b''` since dict keys
are now byte strings. See the wiki page for our Py3 hacks.


More information about the Mercurial-devel mailing list