Merge pull request #4057 from rafaVls/unused-escape-import
Unused escape import
This commit is contained in:
commit
f64fff6476
1 changed files with 2 additions and 2 deletions
|
|
@ -246,7 +246,7 @@ of the argument like ``<converter:variable_name>``. ::
|
|||
@app.route('/user/<username>')
|
||||
def show_user_profile(username):
|
||||
# show the user profile for that user
|
||||
return f'User {username}'
|
||||
return f'User {escape(username)}'
|
||||
|
||||
@app.route('/post/<int:post_id>')
|
||||
def show_post(post_id):
|
||||
|
|
@ -256,7 +256,7 @@ of the argument like ``<converter:variable_name>``. ::
|
|||
@app.route('/path/<path:subpath>')
|
||||
def show_subpath(subpath):
|
||||
# show the subpath after /path/
|
||||
return f'Subpath {subpath}'
|
||||
return f'Subpath {escape(subpath)}'
|
||||
|
||||
Converter types:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue