aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorshynur2024-05-03 19:40:23 +0800
committerEli Zaretskii2024-05-04 14:48:38 +0300
commitbfb31a06acadd5e819a3cb8dc6886122e53646f3 (patch)
tree5345da91aef4e0585fe54e8bb88649b3250bb71b /lisp/progmodes/python.el
parentfa0f65aa342e181e0e98f55cbf5d9a9be5ed3be6 (diff)
downloademacs-bfb31a06acadd5e819a3cb8dc6886122e53646f3.tar.gz
emacs-bfb31a06acadd5e819a3cb8dc6886122e53646f3.zip
Locate error source of ExceptionGroup in Python shell
The Python shell recognizes the line containing a file path and a line number when an exception is raised up to the top-level, in order to locate the source of error. It's supposed to recognize the built-in ExceptionGroup as well. (Bug#70653) * lisp/progmodes/python.el (python-shell-compilation-regexp-alist): Take the single leading vertical line into account. * etc/NEWS: Announce this change.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 5ba185bc60c..e332bd8f61e 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2860,7 +2860,7 @@ virtualenv."
2860 :type '(repeat symbol)) 2860 :type '(repeat symbol))
2861 2861
2862(defcustom python-shell-compilation-regexp-alist 2862(defcustom python-shell-compilation-regexp-alist
2863 `((,(rx line-start (1+ (any " \t")) "File \"" 2863 `((,(rx line-start (1+ (any " \t")) (? ?| (1+ (any " \t"))) "File \""
2864 (group (1+ (not (any "\"<")))) ; avoid `<stdin>' &c 2864 (group (1+ (not (any "\"<")))) ; avoid `<stdin>' &c
2865 "\", line " (group (1+ digit))) 2865 "\", line " (group (1+ digit)))
2866 1 2) 2866 1 2)