summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-07-22 14:43:02 -0300
committerJohan Dahlin <johan@gnome.org>2010-07-22 14:43:02 -0300
commit7bcb292e7ff35764a02629213589f304df8b5076 (patch)
treea94c8e06963c8ad05fe4f195921f86aef6c86e1a
parenta01bb382f8d9924ebdd05c86de734472ff113f00 (diff)
downloadgobject-introspection-7bcb292e7ff35764a02629213589f304df8b5076.tar.gz
[scanner] Make it compatible with python 2.y
https://bugzilla.gnome.org/show_bug.cgi?id=618562
-rw-r--r--giscanner/sourcescanner.py2
-rw-r--r--giscanner/xmlwriter.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
index acfc0485..ae3d29d2 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 0db286bb..c10bcc65 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