]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix bug in reload
authorGuido van Rossum <guido@python.org>
Wed, 9 Aug 1995 02:32:49 +0000 (02:32 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 9 Aug 1995 02:32:49 +0000 (02:32 +0000)
Lib/ihooks.py

index b379fc56f757f3de561d4ac64202ef8e6890d5a8..a6ab1a5d7000ccebcfe6c14b7ccd3d915d1556fe 100644 (file)
@@ -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