Change docs to use f-strings

This commit is contained in:
erfanio 2019-10-26 17:19:00 +11:00
parent 8f422d2b5e
commit 07caa44224
7 changed files with 13 additions and 13 deletions

View file

@ -70,7 +70,7 @@ implement a blueprint that does simple rendering of static templates::
@simple_page.route('/<page>')
def show(page):
try:
return render_template('pages/%s.html' % page)
return render_template(f'pages/{page}.html')
except TemplateNotFound:
abort(404)