summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2004-01-02 04:04:04 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2004-01-02 04:04:04 (GMT)
commite9802a301dc232d1273cc3928488e801d29417b2 (patch)
treed7f3871f0d33e3393788d4550e77096328214f42
parent44a31e1dab25a8528e38127e9aa58609717877b9 (diff)
downloadcpython-e9802a301dc232d1273cc3928488e801d29417b2.zip
cpython-e9802a301dc232d1273cc3928488e801d29417b2.tar.gz
cpython-e9802a301dc232d1273cc3928488e801d29417b2.tar.bz2
- Print correct exception even if source file changed since shell was
restarted. IDLEfork Patch 869012 Noam Raphael Modified Files: NEWS.txt run.py
-rw-r--r--Lib/idlelib/NEWS.txt7
-rw-r--r--Lib/idlelib/run.py2
2 files changed, 7 insertions, 2 deletions
diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
index 1ec735f..998bbaa 100644
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -1,7 +1,10 @@
-What's New in IDLE 1.0+?
+What's New in IDLE 1.1a0?
===================================
-*Release date: XX-XXX-2003*
+*Release date: XX-XXX-2004*
+
+- Print correct exception even if source file changed since shell was
+ restarted. IDLEfork Patch 869012 Noam Raphael
- Keybindings with the Shift modifier now work correctly. So do bindings which
use the Space key. Limit unmodified user keybindings to the function keys.
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 @@ def manage_socket(address):
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()