D3536: json: reject unicode on py2 as well

Yuya Nishihara yuya at tcha.org
Sat May 12 01:39:26 EDT 2018


>   `unicode` is not a type on Python 3. I think this should be changed to `(str, pycompat.unicode)`.

Alternatively, it could be `type(u'')`. I have no preference though.


More information about the Mercurial-devel mailing list