]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
exec() -> exec
authorGuido van Rossum <guido@python.org>
Thu, 10 Aug 1995 19:46:50 +0000 (19:46 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 10 Aug 1995 19:46:50 +0000 (19:46 +0000)
Lib/profile.py

index f41a8ae7bf08be4ecb102690ef71d07992ed7b72..baa95e185ac351391ec63491e79a7b9bf088fee8 100755 (executable)
@@ -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)