Another Python 3 fix

This commit is contained in:
Aldo Bleeker 2021-04-05 12:16:02 +02:00
parent 425d8af73e
commit 91e4645315

View File

@ -191,7 +191,7 @@ def unescape(text):
else: else:
# named entity # named entity
try: try:
text = chr(htmlentitydefs.name2codepoint[text[1:-1]]) text = chr(html.entities.name2codepoint[text[1:-1]])
except KeyError: except KeyError:
pass pass
return text # leave as is return text # leave as is