From 2eb614e805311841e17fd4dbe76aa70443f3a911 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Tue, 7 Sep 2010 10:39:55 -0300 Subject: [PATCH] [scanner] Make it compatible with Python 2.5 again with statement is available in python 2.5, but only if you import it from __future__ --- giscanner/codegen.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/giscanner/codegen.py b/giscanner/codegen.py index 0c0c559..b73a7da 100644 --- a/giscanner/codegen.py +++ b/giscanner/codegen.py @@ -18,7 +18,10 @@ # Boston, MA 02111-1307, USA. # +from __future__ import with_statement + from contextlib import contextmanager + from . import ast class CCodeGenerator(object): -- 2.7.4