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

pull/3740/head
Mike Fährmann 2 years ago
parent baf41d7437
commit 11df3a021d
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -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):

Loading…
Cancel
Save