[pygobject] [gi] Remove DyanmicModule.load() to _load() to prevent overriding GI attrs.
- From: Laszlo Pandy <lpandy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] [gi] Remove DyanmicModule.load() to _load() to prevent overriding GI attrs.
- Date: Thu, 24 Feb 2011 17:49:19 +0000 (UTC)
commit da212024772a7a0c32f04f3589bfb24d2eb5706f
Author: Laszlo Pandy <lpandy src gnome org>
Date: Thu Feb 24 18:46:15 2011 +0100
[gi] Remove DyanmicModule.load() to _load() to prevent overriding GI attrs.
gi/importer.py | 2 +-
gi/module.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/importer.py b/gi/importer.py
index 1678e90..df08274 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 43010e8..3e2b59e 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]