From 63499fb7e9fc41988da1edbdc3dfc2979a06d8bc Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 15 May 2016 15:43:46 +1000 Subject: [PATCH] fix entsToTxt() --- anki/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/utils.py b/anki/utils.py index 7ef7d5efc..f74f87a57 100644 --- a/anki/utils.py +++ b/anki/utils.py @@ -7,7 +7,7 @@ import os import random import time import math -import html.entities +from html.entities import name2codepoint import subprocess import tempfile import shutil @@ -171,7 +171,7 @@ def entsToTxt(html): else: # named entity try: - text = chr(html.entities.name2codepoint[text[1:-1]]) + text = chr(name2codepoint[text[1:-1]]) except KeyError: pass return text # leave as is