summaryrefslogtreecommitdiff
path: root/giscanner/transformer.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-02 08:59:51 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-02 08:59:51 -0300
commitd97f1cdf1fd0064f5ec4251f9a1c0335bb808455 (patch)
tree6e192020cde42e24c82dcf68b89cd7b472197517 /giscanner/transformer.py
parentf653af9c85abd4f0aea2eba71b9eccae7fc71a3b (diff)
downloadgobject-introspection-d97f1cdf1fd0064f5ec4251f9a1c0335bb808455.tar.gz
[scanner] Move namespace out of Transformer
Diffstat (limited to 'giscanner/transformer.py')
-rw-r--r--giscanner/transformer.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index ed6dce82..690cbab1 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -47,15 +47,11 @@ class Transformer(object):
UCASE_CONSTANT_RE = re.compile(r'[_A-Z0-9]+')
- def __init__(self, namespace_name, namespace_version,
- identifier_prefixes=None, symbol_prefixes=None,
- accept_unprefixed=False):
+ def __init__(self, namespace, accept_unprefixed=False):
self._cwd = os.getcwd() + os.sep
self._cachestore = CacheStore()
self._accept_unprefixed = accept_unprefixed
- self._namespace = ast.Namespace(namespace_name, namespace_version,
- identifier_prefixes=identifier_prefixes,
- symbol_prefixes=symbol_prefixes)
+ self._namespace = namespace
self._pkg_config_packages = set()
self._typedefs_ns = {}
self._enable_warnings = False