diff options
author | Johan Dahlin <johan@gnome.org> | 2010-09-07 10:39:55 -0300 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2010-09-07 10:43:08 -0300 |
commit | 2eb614e805311841e17fd4dbe76aa70443f3a911 (patch) | |
tree | a09ece5ee5b9f56941d2d4988398183baa05e779 /giscanner/codegen.py | |
parent | 073fba57af9e1286fdfdf5a40e66a279eaa4c123 (diff) | |
download | gobject-introspection-2eb614e805311841e17fd4dbe76aa70443f3a911.tar.gz |
[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__
Diffstat (limited to 'giscanner/codegen.py')
-rw-r--r-- | giscanner/codegen.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/codegen.py b/giscanner/codegen.py index 0c0c559b..b73a7da3 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): |