Skip to content
Myr

Update for python3 (#1973)

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

just updated print 'Initialized the database.' with print('Initialized the database.') to be python3 compliant

authored by SaturnR · committed by Markus Unterwaditzer · parent 5044f3d · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/tutorial/dbinit.rst+1 added-1 removed
33 unmodified lines
34 @app.cli.command('initdb')35 def initdb_command():36 """Initializes the database."""37 init_db()38 print 'Initialized the database.'38 print('Initialized the database.')3940The ``app.cli.command()`` decorator registers a new command with the41:command:`flask` script. When the command executes, Flask will automatically42create an application context which is bound to the right application.
31 unmodified lines