mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
fix bug in reload
This commit is contained in:
parent
bebe5157a5
commit
6a0691aee4
1 changed files with 1 additions and 0 deletions
|
@ -319,6 +319,7 @@ class ModuleImporter(_Verbose):
|
|||
return self.loader.load_module(name, stuff)
|
||||
|
||||
def reload(self, module, path = None):
|
||||
name = module.__name__
|
||||
stuff = self.loader.find_module(name, path)
|
||||
if not stuff:
|
||||
raise ImportError, "Module %s not found for reload" % name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue