Skip to content
Myr

Touch up dbinit tutorial doc.

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

Discussion on #pocoo with svenstaro, dAnjou, noob13.

authored by Ron DuPlain · committed by Ron DuPlain · parent c7cdb2f · Browse files · 1 file+1 added−2 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−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:docs/tutorial/dbinit.rst+1 added-2 removed
22 unmodified lines
23If you want to do that, you first have to import the24:func:`contextlib.closing` function from the contextlib package. If you25want to use Python 2.5 it's also necessary to enable the `with` statement26first (`__future__` imports must be the very first import). Accordingly,27the following lines should be to your existing import lines in28`flaskr.py`::27add the following lines to your existing imports in `flaskr.py`::2829 from __future__ import with_statement30 from contextlib import closing31
38 unmodified lines