Indicate that unichr is Python 2 only.

This commit is contained in:
Jason R. Coombs 2020-12-18 10:36:43 -05:00
parent 51b0b201b4
commit efd0aef284

View File

@ -219,7 +219,7 @@ def initialize():
def unmangle(s):
return re.sub(
u'\\x7F[0-9a-fA-F]*\\;',
# type ignored for 'unichr'
# type ignored for 'unichr' (Python 2 only)
lambda m: unichr(int(m.group(0)[1:-1], 16)), # type: ignore
s,
)