From afb79f84e20069dee42d99e72ae6c9a79b4bdacb Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 17 Feb 2024 15:22:02 -0500 Subject: [PATCH] No f-string in this branch --- uncompyle6/scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uncompyle6/scanner.py b/uncompyle6/scanner.py index a84b5e5b..c5fbc6f3 100644 --- a/uncompyle6/scanner.py +++ b/uncompyle6/scanner.py @@ -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)