From 3ada87a5088d095dc72250a7eb95f21dcd85809d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 28 May 1996 23:34:10 +0000 Subject: fix typo in load_dynamic --- Lib/rexec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/rexec.py b/Lib/rexec.py index 975bee0..b4ec0f2 100644 --- a/Lib/rexec.py +++ b/Lib/rexec.py @@ -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) -- cgit v0.12