unicode() is not available on Python 3 and throws a NameError because unicodes
are now default str() on py3.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG79dd61a4554f: py3: replace `unicode` with pycompat.unicode
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
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.