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

fixup! web: py3

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