summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-05-28 23:34:10 (GMT)
committerGuido van Rossum <guido@python.org>1996-05-28 23:34:10 (GMT)
commit3ada87a5088d095dc72250a7eb95f21dcd85809d (patch)
treeddb37d020db39ff984f0112353bdc19cf0cc1b6b /Lib
parentf4aaf862fd3f29cc6a3409186dc2f7421ca0ba89 (diff)
downloadcpython-3ada87a5088d095dc72250a7eb95f21dcd85809d.zip
cpython-3ada87a5088d095dc72250a7eb95f21dcd85809d.tar.gz
cpython-3ada87a5088d095dc72250a7eb95f21dcd85809d.tar.bz2
fix typo in load_dynamic
Diffstat (limited to 'Lib')
-rw-r--r--Lib/rexec.py2
1 files changed, 1 insertions, 1 deletions
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)