From: Aldo Bleeker Date: Mon, 5 Apr 2021 10:16:02 +0000 (+0200) Subject: Another Python 3 fix X-Git-Url: http://git.xmof.duckdns.org/?a=commitdiff_plain;h=91e4645315782e916577813f321122aee1b9af28;p=DeDRM.git Another Python 3 fix --- diff --git a/DeDRM_plugin/k4mobidedrm.py b/DeDRM_plugin/k4mobidedrm.py index 43392ee..cede191 100644 --- a/DeDRM_plugin/k4mobidedrm.py +++ b/DeDRM_plugin/k4mobidedrm.py @@ -191,7 +191,7 @@ def unescape(text): else: # named entity try: - text = chr(htmlentitydefs.name2codepoint[text[1:-1]]) + text = chr(html.entities.name2codepoint[text[1:-1]]) except KeyError: pass return text # leave as is