Commit 34f416ac authored by Aurel's avatar Aurel Committed by Jérome Perrin

fixup! a17bb910 use unichr instead of chr

parent 49905528
...@@ -244,7 +244,7 @@ class StrippingParser(HTMLParser): ...@@ -244,7 +244,7 @@ class StrippingParser(HTMLParser):
from six.moves.html_entities import name2codepoint from six.moves.html_entities import name2codepoint
entitydefs = HTMLParser.entitydefs = {'apos':u"'"} entitydefs = HTMLParser.entitydefs = {'apos':u"'"}
for k, v in six.iteritems(name2codepoint): for k, v in six.iteritems(name2codepoint):
entitydefs[k] = chr(v) entitydefs[k] = unichr(v)
# (end) copied from Python-2.6's HTMLParser.py # (end) copied from Python-2.6's HTMLParser.py
if name in self.entitydefs: if name in self.entitydefs:
x = ';' x = ';'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment