We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09afc8c commit eb6a5d4Copy full SHA for eb6a5d4
roundup/anypy/html.py
@@ -1,8 +1,10 @@
1
try:
2
- from html import escape as html_escape_ # python 3
+ from html import escape as html_escape_ # python 3
3
+
4
def html_escape(str, quote=False):
5
# html_escape under python 3 sets quote to true by default
6
# make it python 2 compatible
7
return html_escape_(str, quote=quote)
8
except ImportError:
- 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