From 7bcb292e7ff35764a02629213589f304df8b5076 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Thu, 22 Jul 2010 14:43:02 -0300 Subject: [PATCH] [scanner] Make it compatible with python 2.y https://bugzilla.gnome.org/show_bug.cgi?id=618562 --- giscanner/sourcescanner.py | 2 +- giscanner/xmlwriter.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py index acfc048..ae3d29d 100644 --- a/giscanner/sourcescanner.py +++ b/giscanner/sourcescanner.py @@ -196,7 +196,7 @@ class SourceSymbol(object): class SourceScanner(object): def __init__(self): - with LibtoolImporter: + with LibtoolImporter(None, None): from giscanner._giscanner import SourceScanner self._scanner = SourceScanner() self._filenames = [] diff --git a/giscanner/xmlwriter.py b/giscanner/xmlwriter.py index 0db286b..c10bcc6 100644 --- a/giscanner/xmlwriter.py +++ b/giscanner/xmlwriter.py @@ -67,7 +67,7 @@ def collect_attributes(tag_name, attributes, self_indent, return attr_value -with LibtoolImporter: +with LibtoolImporter(None, None): from giscanner._giscanner import collect_attributes -- 1.7.0.4