Skip to content

Commit f30e6f9

Browse files
committed
chore: ruff lint: replace str variable name with string
str is a type in python.
1 parent 944fba8 commit f30e6f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/anypy/html.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
try:
22
from html import escape as html_escape_ # python 3
33

4-
def html_escape(str, quote=False):
4+
def html_escape(string, quote=False):
55
# html_escape under python 3 sets quote to true by default
66
# make it python 2 compatible
7-
return html_escape_(str, quote=quote)
7+
return html_escape_(string, quote=quote)
88
except ImportError:
99
# python 2 fallback
1010
from cgi import escape as html_escape # noqa: F401

0 commit comments

Comments
 (0)