From a62b1003a67e9da5bbf92679a2b07c7ceab05c43 Mon Sep 17 00:00:00 2001
From: Guido van Rossum <guido@python.org>
Date: Thu, 10 Aug 1995 19:43:04 +0000
Subject: noted obsolescence; exec() -> exec

---
 Lib/lib-old/tb.py | 3 ++-
 Lib/tb.py         | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Lib/lib-old/tb.py b/Lib/lib-old/tb.py
index 0442ba8..641e8af 100644
--- a/Lib/lib-old/tb.py
+++ b/Lib/lib-old/tb.py
@@ -1,5 +1,6 @@
 # Print tracebacks, with a dump of local variables.
 # Also an interactive stack trace browser.
+# Note -- this module is obsolete -- use pdb.pm() instead.
 
 import sys
 import os
@@ -71,7 +72,7 @@ def browserexec(tb, cmd):
 	locals = tb.tb_frame.f_locals
 	globals = tb.tb_frame.f_globals
 	try:
-		exec(cmd+'\n', globals, locals)
+		exec cmd+'\n' in globals, locals
 	except:
 		print '*** Exception:',
 		if type(sys.exc_type) == type(''):
diff --git a/Lib/tb.py b/Lib/tb.py
index 0442ba8..641e8af 100644
--- a/Lib/tb.py
+++ b/Lib/tb.py
@@ -1,5 +1,6 @@
 # Print tracebacks, with a dump of local variables.
 # Also an interactive stack trace browser.
+# Note -- this module is obsolete -- use pdb.pm() instead.
 
 import sys
 import os
@@ -71,7 +72,7 @@ def browserexec(tb, cmd):
 	locals = tb.tb_frame.f_locals
 	globals = tb.tb_frame.f_globals
 	try:
-		exec(cmd+'\n', globals, locals)
+		exec cmd+'\n' in globals, locals
 	except:
 		print '*** Exception:',
 		if type(sys.exc_type) == type(''):
-- 
cgit v0.12

