fix typo in load_dynamic

This commit is contained in:
Guido van Rossum 1996-05-28 23:34:10 +00:00
parent f4aaf862fd
commit 3ada87a508

View file

@ -173,7 +173,7 @@ class RExec(ihooks._Verbose):
if name not in self.ok_dynamic_modules:
raise ImportError, "untrusted dynamic module: %s" % name
if sys.modules.has_key(name):
src = sys.modules[key]
src = sys.modules[name]
else:
import imp
src = imp.load_dynamic(name, filename, file)