diff options
Diffstat (limited to 'Lib/ihooks.py')
-rw-r--r-- | Lib/ihooks.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/ihooks.py b/Lib/ihooks.py index b379fc5..a6ab1a5 100644 --- a/Lib/ihooks.py +++ b/Lib/ihooks.py @@ -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 |