Show More
@@ -158,7 +158,7 b' class _demandmod(object):' | |||||
158 | _pypy = '__pypy__' in sys.builtin_module_names |
|
158 | _pypy = '__pypy__' in sys.builtin_module_names | |
159 |
|
159 | |||
160 | def _demandimport(name, globals=None, locals=None, fromlist=None, level=level): |
|
160 | def _demandimport(name, globals=None, locals=None, fromlist=None, level=level): | |
161 |
if |
|
161 | if locals is None or name in ignore or fromlist == ('*',): | |
162 | # these cases we can't really delay |
|
162 | # these cases we can't really delay | |
163 | return _hgextimport(_import, name, globals, locals, fromlist, level) |
|
163 | return _hgextimport(_import, name, globals, locals, fromlist, level) | |
164 | elif not fromlist: |
|
164 | elif not fromlist: |
General Comments 0
You need to be logged in to leave comments.
Login now