]> xmof Git - DeDRM.git/commitdiff
Another Python 3 fix
authorAldo Bleeker <mail@ableeker.demon.nl>
Mon, 5 Apr 2021 10:16:02 +0000 (12:16 +0200)
committerAldo Bleeker <mail@ableeker.demon.nl>
Mon, 5 Apr 2021 10:16:02 +0000 (12:16 +0200)
DeDRM_plugin/k4mobidedrm.py

index 43392eed3e31719c9c3cf620ad1776d5d014a193..cede191e568dea651f7fe59b538753d128f0afb8 100644 (file)
@@ -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