Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c3241d

Browse files
committed
exec() -> exec
1 parent 1a16c86 commit 9c3241d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def runctx(self, cmd, globals, locals):
400400
self.set_cmd(cmd)
401401
sys.setprofile(self.trace_dispatch)
402402
try:
403-
exec(cmd, globals, locals)
403+
exec cmd in globals, locals
404404
finally:
405405
sys.setprofile(None)
406406

0 commit comments

Comments
 (0)