[pygobject] Add __name__ to DynamicModule class.
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Add __name__ to DynamicModule class.
- Date: Mon, 5 Jul 2010 18:38:34 +0000 (UTC)
commit dc2249a3ecf339008351316217191d0551ccc588
Author: Jose Aliste <jaliste src gnome org>
Date: Mon Jul 5 14:36:59 2010 -0400
Add __name__ to DynamicModule class.
Fixes bug #623486.
gi/module.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gi/module.py b/gi/module.py
index e1326aa..e149986 100644
--- a/gi/module.py
+++ b/gi/module.py
@@ -79,6 +79,7 @@ class DynamicModule(object):
def __init__(self, namespace):
self._namespace = namespace
+ self.__name__ = 'gi.repository.' + namespace
def __getattr__(self, name):
info = repository.find_by_name(self._namespace, name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]