Show More
@@ -174,7 +174,12 b' def _demandimport(name, globals=None, lo' | |||
|
174 | 174 | """ |
|
175 | 175 | symbol = getattr(mod, attr, nothing) |
|
176 | 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 | 183 | setattr(mod, attr, symbol) |
|
179 | 184 | |
|
180 | 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