mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
python: upgrade from .format() to f-strings
They are supported since Python 3.5.
This commit is contained in:
@@ -171,7 +171,7 @@ def extract_defines(flags):
|
||||
match = defines_re.match(line)
|
||||
if match:
|
||||
defines.append(match.group(1))
|
||||
return "\n".join("#define {} ...".format(d) for d in defines)
|
||||
return "\n".join(f"#define {d} ..." for d in defines)
|
||||
|
||||
|
||||
def ffibuilder():
|
||||
|
||||
Reference in New Issue
Block a user