]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
noted obsolescence; exec() -> exec
authorGuido van Rossum <guido@python.org>
Thu, 10 Aug 1995 19:43:04 +0000 (19:43 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 10 Aug 1995 19:43:04 +0000 (19:43 +0000)
Lib/lib-old/tb.py
Lib/tb.py

index 0442ba86e2e58fa78cd33ed0f830294ae847e138..641e8af2e865f90b610df7b6f44e504a8c8c1eb9 100644 (file)
@@ -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(''):
index 0442ba86e2e58fa78cd33ed0f830294ae847e138..641e8af2e865f90b610df7b6f44e504a8c8c1eb9 100644 (file)
--- 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(''):