diff Misc/python-mode.el @ 6683:cb889b678053 legacy-trunk

(py-traceback-line-re): Relaxation of regexp to catch SyntaxErrors. Harri Pasanen.
author Barry Warsaw <barry@python.org>
date Thu, 27 Nov 1997 20:08:14 +0000
parents f95c9ae2aaef
children b9fcb9a34332
line wrap: on
line diff
--- a/Misc/python-mode.el	Thu Nov 27 01:39:15 1997 +0000
+++ b/Misc/python-mode.el	Thu Nov 27 20:08:14 1997 +0000
@@ -355,7 +355,7 @@
 
 ;; Regexp that describes tracebacks
 (defconst py-traceback-line-re
-  "[ \t]+File \"\\([^\"]+\\)\", line \\([0-9]+\\), in ")
+  "[ \t]+File \"\\([^\"]+\\)\", line \\([0-9]+\\)")
 
 
 
@@ -1242,7 +1242,7 @@
 	 (buffer (if proc "*Python*" py-output-buffer)))
     (if top
 	(py-find-next-exception 'bob buffer 're-search-forward "Top")
-      (py-find-next-exception 'boi buffer 're-search-backward "Top"))))
+      (py-find-next-exception 'bol buffer 're-search-backward "Top"))))
 
 
 ;; Electric deletion