exec() -> exec
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 @@
 		self.set_cmd(cmd)
 		sys.setprofile(self.trace_dispatch)
 		try:
-			exec(cmd, globals, locals)
+			exec cmd in globals, locals
 		finally:
 			sys.setprofile(None)