D3708: py3: replace `unicode` with `type(u'')` in isinstance() calls

Yuya Nishihara yuya at tcha.org
Sun Jun 10 11:01:33 EDT 2018


>   unicode() is not available on Python 3 and throws a NameError because unicodes
>   are now default str() on py3.

Appears that we need many `type(u'')`s, so I'd rather make `pycompat.unicode`
available on both Py2 and Py3. IMHO, `type(u'')` is just a temporary
workaround.


More information about the Mercurial-devel mailing list