From 6a0691aee4ae8209abec37512331137840f7dc10 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 9 Aug 1995 02:32:49 +0000 Subject: fix bug in reload --- Lib/ihooks.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v0.12