diff options
Diffstat (limited to 'gi/importer.py')
-rw-r--r-- | gi/importer.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gi/importer.py b/gi/importer.py index 62555b1..aa95cf6 100644 --- a/gi/importer.py +++ b/gi/importer.py @@ -24,8 +24,8 @@ from __future__ import absolute_import import logging import sys -from ._gi import Repository, RepositoryError -from .module import DynamicModule, DynamicGObjectModule, DynamicGLibModule +from ._gi import Repository +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 @@ -76,4 +68,3 @@ class DynamicImporter(object): dynamic_module._load() return dynamic_module - |