Show More
@@ -174,7 +174,12 b' def _demandimport(name, globals=None, lo' | |||||
174 | """ |
|
174 | """ | |
175 | symbol = getattr(mod, attr, nothing) |
|
175 | symbol = getattr(mod, attr, nothing) | |
176 | if symbol is nothing: |
|
176 | if symbol is nothing: | |
177 | symbol = _demandmod(attr, mod.__dict__, locals, level=1) |
|
177 | mn = '%s.%s' % (mod.__name__, attr) | |
|
178 | if mn in ignore: | |||
|
179 | importfunc = _origimport | |||
|
180 | else: | |||
|
181 | importfunc = _demandmod | |||
|
182 | symbol = importfunc(attr, mod.__dict__, locals, level=1) | |||
178 | setattr(mod, attr, symbol) |
|
183 | setattr(mod, attr, symbol) | |
179 |
|
184 | |||
180 | # Record the importing module references this symbol so we can |
|
185 | # Record the importing module references this symbol so we can |
General Comments 0
You need to be logged in to leave comments.
Login now