diff options
author | Guido van Rossum <guido@python.org> | 1995-08-10 19:43:04 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-08-10 19:43:04 (GMT) |
commit | a62b1003a67e9da5bbf92679a2b07c7ceab05c43 (patch) | |
tree | 5b670d2f30355008cf08e79674100fdf6177c523 /Lib/tb.py | |
parent | 894a7bb9955233293b263897e52fa401240c030d (diff) | |
download | cpython-a62b1003a67e9da5bbf92679a2b07c7ceab05c43.zip cpython-a62b1003a67e9da5bbf92679a2b07c7ceab05c43.tar.gz cpython-a62b1003a67e9da5bbf92679a2b07c7ceab05c43.tar.bz2 |
noted obsolescence; exec() -> exec
Diffstat (limited to 'Lib/tb.py')
-rw-r--r-- | Lib/tb.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(''): |