Commit e9f0a931 authored by Jérome Perrin's avatar Jérome Perrin

fixup! web: py3

parent 4988b0d7
......@@ -134,6 +134,7 @@ def parseCssForUrl(text):
result.append(("data", data))
return result
# pylint:disable=no-name-in-module
if six.PY2:
def unescape(self, html):
return HTMLParser().unescape(html)
......@@ -141,3 +142,4 @@ else:
from html import unescape as html_unescape
def unescape(self, html):
return html_unescape(html)
# pylint:enable=no-name-in-module
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