Skip to content

Commit eb6a5d4

Browse files
committed
flake8 cleanups whitespace formatting only.
Also added noqa to py2 clause as flake8 was reporting unused import.
1 parent 09afc8c commit eb6a5d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

roundup/anypy/html.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
try:
2-
from html import escape as html_escape_ # python 3
2+
from html import escape as html_escape_ # python 3
3+
34
def html_escape(str, quote=False):
45
# html_escape under python 3 sets quote to true by default
56
# make it python 2 compatible
67
return html_escape_(str, quote=quote)
78
except ImportError:
8-
from cgi import escape as html_escape # python 2 fallback
9+
# python 2 fallback
10+
from cgi import escape as html_escape # noqa: F401

0 commit comments

Comments
 (0)