No f-string in this branch

This commit is contained in:
rocky
2024-02-17 15:22:02 -05:00
parent 1f462cf503
commit afb79f84e2

View File

@@ -662,7 +662,7 @@ def prefer_double_quote(string: str) -> str:
single quoted string when possible
"""
if string.find("'") == -1:
return f'"{string}"'
return '"%s"' % string
return repr(string)