Use f-strings instead of str.format() (#1793)

This commit is contained in:
Mykhailo Yusko
2020-02-25 22:01:13 +02:00
committed by GitHub
parent 861e87347a
commit 16961fab9d
19 changed files with 91 additions and 103 deletions

View File

@@ -43,7 +43,7 @@ def handler_6(request, arg):
try:
foo = 1 / arg
except Exception as e:
raise e from ValueError("{}".format(arg))
raise e from ValueError(f"{arg}")
return text(foo)