[formatter] enclose f-strings with """ instead of '''

This commit is contained in:
Mike Fährmann
2023-03-03 20:03:27 +01:00
parent baf41d7437
commit 11df3a021d

View File

@@ -226,7 +226,7 @@ class FStringFormatter():
"""Generate text by evaluating an f-string literal"""
def __init__(self, fstring, default=NONE, fmt=None):
self.format_map = util.compile_expression("f'''" + fstring + "'''")
self.format_map = util.compile_expression('f"""' + fstring + '"""')
def parse_field_name(field_name):