Skip to content
Myr

Use print function in quickstart (#2204)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Example in URL Building section uses `print` statement instead of `print` function, which causes syntax error when example is run on Python 3.

authored by Jan Ferko · committed by Adrian · parent 46e8427 · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:docs/quickstart.rst+4 added-4 removed
262 unmodified lines
263 >>> @app.route('/user/<username>')264 ... def profile(username): pass265 ...266 >>> with app.test_request_context():267 ... print url_for('index')268 ... print url_for('login')269 ... print url_for('login', next='/')270 ... print url_for('profile', username='John Doe')267 ... print(url_for('index'))268 ... print(url_for('login'))269 ... print(url_for('login', next='/'))270 ... print(url_for('profile', username='John Doe'))271 ...272 /273 /login274 /login?next=/
619 unmodified lines