Coding style.
- Converted to f-strings.
This commit is contained in:
parent
7cfbcae685
commit
e34e896800
11 changed files with 60 additions and 69 deletions
|
|
@ -10,8 +10,7 @@ import vigil.tools as tools
|
|||
|
||||
def tool_markup(tool):
|
||||
url = tools.url_of_tool(tool)
|
||||
return (tool.__name__ if url is None else
|
||||
"[%s](%s)" % (tool.__name__, url))
|
||||
return (tool.__name__ if url is None else f"[{tool.__name__}]({url})")
|
||||
|
||||
|
||||
print("""\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue