forked from orbit-oss/flask
Use print function in quickstart (#2204)
Example in URL Building section uses `print` statement instead of `print` function, which causes syntax error when example is run on Python 3.
This commit is contained in:
parent
46e8427d81
commit
1add1f8a02
1 changed files with 4 additions and 4 deletions
|
|
@ -264,10 +264,10 @@ some examples::
|
|||
... def profile(username): pass
|
||||
...
|
||||
>>> with app.test_request_context():
|
||||
... print url_for('index')
|
||||
... print url_for('login')
|
||||
... print url_for('login', next='/')
|
||||
... print url_for('profile', username='John Doe')
|
||||
... print(url_for('index'))
|
||||
... print(url_for('login'))
|
||||
... print(url_for('login', next='/'))
|
||||
... print(url_for('profile', username='John Doe'))
|
||||
...
|
||||
/
|
||||
/login
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue