Skip to content

Commit 1f6da0b

Browse files
committed
Simplify a formatted string
1 parent e5ed0fc commit 1f6da0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

knowledge_repo/app/routes/debug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def show_views():
8686

8787
methods = ','.join(rule.methods)
8888
url = url_for(rule.endpoint, **options)
89-
line = unquote("{:50s} {:20s} {}".format(rule.endpoint, methods, url))
89+
line = unquote(f'{rule.endpoint:50s} {methods:20s} {url}')
9090
output.append(line)
9191

9292
return "<br />".join(sorted(output))

0 commit comments

Comments
 (0)