diff options
author | Guido van Rossum <guido@python.org> | 1995-08-09 02:32:49 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-08-09 02:32:49 (GMT) |
commit | 6a0691aee4ae8209abec37512331137840f7dc10 (patch) | |
tree | de454baf755e9661f1be16617ad229a6fe0647e2 | |
parent | bebe5157a5bccfbf8a99e5e207c037ad9cbb608c (diff) | |
download | cpython-6a0691aee4ae8209abec37512331137840f7dc10.zip cpython-6a0691aee4ae8209abec37512331137840f7dc10.tar.gz cpython-6a0691aee4ae8209abec37512331137840f7dc10.tar.bz2 |
fix bug in reload
-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 |