From 6ec262da3d5ba41f4edc97df047f8e5b7b8518f4 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Thu, 19 Apr 2012 20:40:16 +1200 Subject: [PATCH] Tweaked imports --- plugins/util/misc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/util/misc.py b/plugins/util/misc.py index 0e1fc04..9def21d 100755 --- a/plugins/util/misc.py +++ b/plugins/util/misc.py @@ -1,5 +1,5 @@ -from htmlentitydefs import name2codepoint from HTMLParser import HTMLParser +import htmlentitydefs import errno import re @@ -26,7 +26,7 @@ class HTMLStripper(HTMLParser): def handle_entityref(self, name): try: - char = unichr(name2codepoint[name]) + char = unichr(htmlentitydefs.name2codepoint[name]) except Exception, error: char = u'&%s;' % name self._stripped.append(char)