##// END OF EJS Templates
demandimport: strictly check missing locals argument...
Yuya Nishihara -
r32365:b2b56052 default
parent child Browse files
Show More
@@ -158,7 +158,7 b' class _demandmod(object):'
158 158 _pypy = '__pypy__' in sys.builtin_module_names
159 159
160 160 def _demandimport(name, globals=None, locals=None, fromlist=None, level=level):
161 if not locals or name in ignore or fromlist == ('*',):
161 if locals is None or name in ignore or fromlist == ('*',):
162 162 # these cases we can't really delay
163 163 return _hgextimport(_import, name, globals, locals, fromlist, level)
164 164 elif not fromlist:
General Comments 0
You need to be logged in to leave comments. Login now