how to use with statement in python 2.4 code example
Example: how to use with statementin python 2.4
# you need to add it in python 2.5 and earlier
from __future__ import with_statement
# you need to add it in python 2.5 and earlier
from __future__ import with_statement