document python 2.6 minimum requirement, remove all stuff that refers to 2.5

This commit is contained in:
Thomas Waldmann 2013-05-18 17:06:25 +02:00
parent 521398d5e7
commit 40fad2ece8
10 changed files with 8 additions and 20 deletions

View file

@ -21,12 +21,9 @@ errors. It's a good idea to add a function that initializes the database
for you to the application.
If you want to do that, you first have to import the
:func:`contextlib.closing` function from the contextlib package. If you
want to use Python 2.5 it's also necessary to enable the `with` statement
first (`__future__` imports must be the very first import). Accordingly,
add the following lines to your existing imports in `flaskr.py`::
:func:`contextlib.closing` function from the contextlib package.
Accordingly, add the following lines to your existing imports in `flaskr.py`::
from __future__ import with_statement
from contextlib import closing
Next we can create a function called `init_db` that initializes the