summaryrefslogtreecommitdiffstats
path: root/Lib/profile.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-08-10 19:46:50 (GMT)
committerGuido van Rossum <guido@python.org>1995-08-10 19:46:50 (GMT)
commit9c3241d6d063e7e91f2c2fbfaeb235916c9bd704 (patch)
treedde5205186004a44e0ddab3102ec8ea7deb63c0a /Lib/profile.py
parent1a16c868d45740f4bc08fa5c81d998ba6af8235e (diff)
downloadcpython-9c3241d6d063e7e91f2c2fbfaeb235916c9bd704.zip
cpython-9c3241d6d063e7e91f2c2fbfaeb235916c9bd704.tar.gz
cpython-9c3241d6d063e7e91f2c2fbfaeb235916c9bd704.tar.bz2
exec() -> exec
Diffstat (limited to 'Lib/profile.py')
-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)