Commit 6f417453 authored by Aurel's avatar Aurel Committed by Arnaud Fontaine

fixup! a17bb910 use unichr instead of chr

parent f53fdfad
...@@ -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