The with call is not an automatic in python 2.5, you need to import with_statement for it to work.

the from __future__ import with_statement needs to be the first import statment as well.
This commit is contained in:
wsuetholz
2010-11-18 20:08:55 -06:00
parent 22d0989d0a
commit 26f6ddabd9
+2
View File
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import with_statement
import sys
import os
import zlib