From 91e4645315782e916577813f321122aee1b9af28 Mon Sep 17 00:00:00 2001 From: Aldo Bleeker Date: Mon, 5 Apr 2021 12:16:02 +0200 Subject: [PATCH] Another Python 3 fix --- DeDRM_plugin/k4mobidedrm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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