summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-08-09 02:32:49 (GMT)
committerGuido van Rossum <guido@python.org>1995-08-09 02:32:49 (GMT)
commit6a0691aee4ae8209abec37512331137840f7dc10 (patch)
treede454baf755e9661f1be16617ad229a6fe0647e2
parentbebe5157a5bccfbf8a99e5e207c037ad9cbb608c (diff)
downloadcpython-6a0691aee4ae8209abec37512331137840f7dc10.zip
cpython-6a0691aee4ae8209abec37512331137840f7dc10.tar.gz
cpython-6a0691aee4ae8209abec37512331137840f7dc10.tar.bz2
fix bug in reload
-rw-r--r--Lib/ihooks.py1
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