mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
fix typo in load_dynamic
This commit is contained in:
parent
f4aaf862fd
commit
3ada87a508
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue