mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-04 20:24:12 +00:00
Indicate that unichr is Python 2 only.
This commit is contained in:
parent
51b0b201b4
commit
efd0aef284
@ -219,7 +219,7 @@ def initialize():
|
|||||||
def unmangle(s):
|
def unmangle(s):
|
||||||
return re.sub(
|
return re.sub(
|
||||||
u'\\x7F[0-9a-fA-F]*\\;',
|
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
|
lambda m: unichr(int(m.group(0)[1:-1], 16)), # type: ignore
|
||||||
s,
|
s,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user