summaryrefslogtreecommitdiffstats
path: root/Lib/imputil.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/imputil.py')
-rw-r--r--Lib/imputil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/imputil.py b/Lib/imputil.py
index 8a49bb1..f2e752c 100644
--- a/Lib/imputil.py
+++ b/Lib/imputil.py
@@ -301,7 +301,7 @@ class Importer:
# execute the code within the module's namespace
if not is_module:
try:
- exec code in module.__dict__
+ exec(code, module.__dict__)
except:
if fqname in sys.modules:
del sys.modules[fqname]