diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-07-12 08:48:07 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-07-12 08:48:11 +0900 |
commit | 3b5dc6176476d5ed2313cd7185d985f47e225165 (patch) | |
tree | aee8e1d1c516bf7528eceae708baecfe484baddc /gi/importer.py | |
parent | d80fc1d31f28c6bcf9ea34b253e8765321616c3c (diff) | |
download | pygobject2-3b5dc6176476d5ed2313cd7185d985f47e225165.tar.gz pygobject2-3b5dc6176476d5ed2313cd7185d985f47e225165.tar.bz2 pygobject2-3b5dc6176476d5ed2313cd7185d985f47e225165.zip |
Imported Upstream version 3.7.2
Change-Id: I6fbadd2c5d032a44b4b424160cdbd0f097320457
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'gi/importer.py')
-rw-r--r-- | gi/importer.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gi/importer.py b/gi/importer.py index d83a384..aa95cf6 100644 --- a/gi/importer.py +++ b/gi/importer.py @@ -25,7 +25,7 @@ import logging import sys from ._gi import Repository -from .module import DynamicModule, DynamicGObjectModule, DynamicGLibModule +from .module import DynamicModule repository = Repository.get_default() @@ -58,15 +58,7 @@ class DynamicImporter(object): return sys.modules[fullname] path, namespace = fullname.rsplit('.', 1) - - # Special case GObject and GLib - if namespace == 'GObject': - dynamic_module = DynamicGObjectModule() - elif namespace == "GLib": - dynamic_module = DynamicGLibModule() - else: - dynamic_module = DynamicModule(namespace) - + dynamic_module = DynamicModule(namespace) modules[namespace] = dynamic_module dynamic_module.__file__ = '<%s>' % fullname |