##// END OF EJS Templates
Ensure modules for autoreload have a __loader__ attribute.
Thomas Kluyver -
Show More
@@ -372,6 +372,7 b' def superreload(module, reload=reload, old_objects={}):'
372 old_name = module.__name__
372 old_name = module.__name__
373 module.__dict__.clear()
373 module.__dict__.clear()
374 module.__dict__['__name__'] = old_name
374 module.__dict__['__name__'] = old_name
375 module.__dict__['__loader__'] = old_dict['__loader__']
375 except (TypeError, AttributeError, KeyError):
376 except (TypeError, AttributeError, KeyError):
376 pass
377 pass
377
378
General Comments 0
You need to be logged in to leave comments. Login now