1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 20:22:36 +01:00

[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
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

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