You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
No f-string in this branch
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user