commit | 6a0691aee4ae8209abec37512331137840f7dc10 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Aug 09 02:32:49 1995 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Aug 09 02:32:49 1995 +0000 |
tree | de454baf755e9661f1be16617ad229a6fe0647e2 | |
parent | bebe5157a5bccfbf8a99e5e207c037ad9cbb608c [diff] |
fix bug in reload
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 @@ 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