From: Guido van Rossum Date: Wed, 9 Aug 1995 02:32:49 +0000 (+0000) Subject: fix bug in reload X-Git-Tag: v1.3b1~86 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a0691aee4ae8209abec37512331137840f7dc10;p=thirdparty%2FPython%2Fcpython.git fix bug in reload --- diff --git a/Lib/ihooks.py b/Lib/ihooks.py index b379fc56f757..a6ab1a5d7000 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