diff options
author | Laszlo Pandy <lpandy@src.gnome.org> | 2011-02-24 18:46:15 +0100 |
---|---|---|
committer | Laszlo Pandy <lpandy@src.gnome.org> | 2011-02-24 18:47:07 +0100 |
commit | da212024772a7a0c32f04f3589bfb24d2eb5706f (patch) | |
tree | 00c576abc3ef738fae1baf93c0fed5ece4629f12 | |
parent | 2ce6b58c7427cf67ba4f55731ba0a4c04703e495 (diff) | |
download | pygobject-da212024772a7a0c32f04f3589bfb24d2eb5706f.tar.gz |
[gi] Remove DyanmicModule.load() to _load() to prevent overriding GI attrs.
-rw-r--r-- | gi/importer.py | 2 | ||||
-rw-r--r-- | gi/module.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gi/importer.py b/gi/importer.py index 1678e90c..df082748 100644 --- a/gi/importer.py +++ b/gi/importer.py @@ -73,7 +73,7 @@ class DynamicImporter(object): dynamic_module.__loader__ = self sys.modules[fullname] = dynamic_module - dynamic_module.load() + dynamic_module._load() return dynamic_module diff --git a/gi/module.py b/gi/module.py index 43010e83..3e2b59e6 100644 --- a/gi/module.py +++ b/gi/module.py @@ -234,7 +234,7 @@ class DynamicModule(object): self._overrides_module = None self.__path__ = None - def load(self): + def _load(self): version = gi.get_required_version(self._namespace) self._introspection_module = IntrospectionModule(self._namespace, version) |