diff options
| author | Kurt B. Kaiser <kbk@shore.net> | 2003-11-19 04:52:32 (GMT) | 
|---|---|---|
| committer | Kurt B. Kaiser <kbk@shore.net> | 2003-11-19 04:52:32 (GMT) | 
| commit | 924f6164215f59e04fa8aa62ed62ce8a50991267 (patch) | |
| tree | 75d4611aefa3771ae0c45009d44002beae08a903 /Lib/idlelib/run.py | |
| parent | b03136ad527579b93fa62cbf80d61511d41a839c (diff) | |
| download | cpython-924f6164215f59e04fa8aa62ed62ce8a50991267.zip cpython-924f6164215f59e04fa8aa62ed62ce8a50991267.tar.gz cpython-924f6164215f59e04fa8aa62ed62ce8a50991267.tar.bz2  | |
- After an exception, run.py was not setting the exception vector. Noam
  Raphael suggested correcting this so pdb's postmortem pm() would work.
  IDLEfork Patch 844675
Modified: NEWS.txt  run.py
Diffstat (limited to 'Lib/idlelib/run.py')
| -rw-r--r-- | Lib/idlelib/run.py | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index 4e6345c..d1fe08f 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -111,7 +111,8 @@ def manage_socket(address):  def print_exception():      flush_stdout()      efile = sys.stderr -    typ, val, tb = sys.exc_info() +    typ, val, tb = excinfo = sys.exc_info() +    sys.last_type, sys.last_value, sys.last_traceback = excinfo      tbe = traceback.extract_tb(tb)      print >>efile, '\nTraceback (most recent call last):'      exclude = ("run.py", "rpc.py", "threading.py", "Queue.py",  | 
