]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
- Print correct exception even if source file changed since shell was
authorKurt B. Kaiser <kbk@shore.net>
Fri, 2 Jan 2004 04:04:04 +0000 (04:04 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Fri, 2 Jan 2004 04:04:04 +0000 (04:04 +0000)
  restarted.  IDLEfork Patch 869012 Noam Raphael

Modified Files:
NEWS.txt run.py

Lib/idlelib/NEWS.txt
Lib/idlelib/run.py

index 1ec735f8d8762ec097909ec3ed986a6c0776de41..998bbaa6f029b4aa8a2d70e51c6f402c4ee3bb23 100644 (file)
@@ -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.
index d1fe08f3e880e6cf1ade426a43a9f2c1535447ce..8cfa808b14a34362a119069dc69c865c1bf1ce4b 100644 (file)
@@ -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()