##// END OF EJS Templates
Exclude numpy._globals from deepreload...
Thomas Kluyver -
Show More
@@ -327,7 +327,8 b' except AttributeError:'
327 original_reload = imp.reload # Python 3
327 original_reload = imp.reload # Python 3
328
328
329 # Replacement for reload()
329 # Replacement for reload()
330 def reload(module, exclude=('sys', 'os.path', builtin_mod_name, '__main__')):
330 def reload(module, exclude=('sys', 'os.path', builtin_mod_name, '__main__',
331 'numpy._globals')):
331 """Recursively reload all modules used in the given module. Optionally
332 """Recursively reload all modules used in the given module. Optionally
332 takes a list of modules to exclude from reloading. The default exclude
333 takes a list of modules to exclude from reloading. The default exclude
333 list contains sys, __main__, and __builtin__, to prevent, e.g., resetting
334 list contains sys, __main__, and __builtin__, to prevent, e.g., resetting
General Comments 0
You need to be logged in to leave comments. Login now