exec() -> exec

This commit is contained in:
Guido van Rossum 1995-08-10 19:46:50 +00:00
parent 1a16c868d4
commit 9c3241d6d0
1 changed files with 1 additions and 1 deletions

View File

@ -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)