Cleanup: use str.format instead of f-strings

This commit is contained in:
Campbell Barton
2024-08-16 09:28:06 +10:00
parent d6c5010936
commit d777267982
3 changed files with 9 additions and 9 deletions

View File

@@ -2172,7 +2172,7 @@ def main() -> int:
try:
regex_list.append(re.compile(expr))
except Exception as ex:
print(f"Error in expression: {expr}\n {ex}")
print("Error in expression: {:s}\n {!r}".format(expr, ex))
return 1
edits_all_from_args = args.edits.split(",")