summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xLib/profile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/profile.py b/Lib/profile.py
index f41a8ae..baa95e1 100755
--- a/Lib/profile.py
+++ b/Lib/profile.py
@@ -400,7 +400,7 @@ class Profile:
self.set_cmd(cmd)
sys.setprofile(self.trace_dispatch)
try:
- exec(cmd, globals, locals)
+ exec cmd in globals, locals
finally:
sys.setprofile(None)