commit | e9802a301dc232d1273cc3928488e801d29417b2 | [log] [tgz] |
---|---|---|
author | Kurt B. Kaiser <kbk@shore.net> | Fri Jan 02 04:04:04 2004 +0000 |
committer | Kurt B. Kaiser <kbk@shore.net> | Fri Jan 02 04:04:04 2004 +0000 |
tree | d7f3871f0d33e3393788d4550e77096328214f42 | |
parent | 44a31e1dab25a8528e38127e9aa58609717877b9 [diff] [blame] |
- Print correct exception even if source file changed since shell was restarted. IDLEfork Patch 869012 Noam Raphael Modified Files: NEWS.txt run.py
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index d1fe08f..8cfa808 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py
@@ -109,6 +109,8 @@ server.handle_request() # A single request only def print_exception(): + import linecache + linecache.checkcache() flush_stdout() efile = sys.stderr typ, val, tb = excinfo = sys.exc_info()