mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
exec() -> exec
This commit is contained in:
parent
1a16c868d4
commit
9c3241d6d0
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue