Show More
@@ -81,6 +81,10 b' class _replacer_from(_replacer):' | |||||
81 |
|
81 | |||
82 | return getattr(importer.module(), target) |
|
82 | return getattr(importer.module(), target) | |
83 |
|
83 | |||
|
84 | def __call__(self, *args, **kwargs): | |||
|
85 | target = object.__getattribute__(self, 'module')() | |||
|
86 | return target(*args, **kwargs) | |||
|
87 | ||||
84 | def demandload(scope, modules): |
|
88 | def demandload(scope, modules): | |
85 | '''import modules into scope when each is first used. |
|
89 | '''import modules into scope when each is first used. | |
86 |
|
90 |
General Comments 0
You need to be logged in to leave comments.
Login now