From 26f6ddabd9674d949d3782f9c18c476a54774a53 Mon Sep 17 00:00:00 2001 From: wsuetholz Date: Thu, 18 Nov 2010 20:08:55 -0600 Subject: [PATCH] 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. --- zipdir.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zipdir.py b/zipdir.py index 6079e08..eb50c96 100644 --- a/zipdir.py +++ b/zipdir.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- +from __future__ import with_statement + import sys import os import zlib