Как использовать с утверждением в Python 2.5 и раньше
# you need to add it in python 2.5 and earlier
from __future__ import with_statement
Jenova
# you need to add it in python 2.5 and earlier
from __future__ import with_statement