Mercurial > p > roundup > code
changeset 7769:7f888f046857
chore: ruff lint: replace str variable name with string
str is a type in python.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 02 Mar 2024 04:14:18 -0500 |
| parents | 609c5fd638e8 |
| children | f002747b6773 |
| files | roundup/anypy/html.py |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/roundup/anypy/html.py Sat Mar 02 04:13:28 2024 -0500 +++ b/roundup/anypy/html.py Sat Mar 02 04:14:18 2024 -0500 @@ -1,10 +1,10 @@ try: from html import escape as html_escape_ # python 3 - def html_escape(str, quote=False): + def html_escape(string, quote=False): # html_escape under python 3 sets quote to true by default # make it python 2 compatible - return html_escape_(str, quote=quote) + return html_escape_(string, quote=quote) except ImportError: # python 2 fallback from cgi import escape as html_escape # noqa: F401
