emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master b71750a 193/215: Relax deleted breakpoint regexp in PDB to


From: Rocky Bernstein
Subject: [elpa] master b71750a 193/215: Relax deleted breakpoint regexp in PDB to support Python 2 and 3
Date: Sat, 30 Jul 2016 14:49:05 +0000 (UTC)

branch: master
commit b71750a1a38400db91a45d530623b2924f5e9fae
Author: Clément Pit--Claudel <address@hidden>
Commit: Clément Pit--Claudel <address@hidden>

    Relax deleted breakpoint regexp in PDB to support Python 2 and 3
    
    In Python 3, the deleted breakpoint message include a file path and a
    line number; it doesn't in Python 2.
    
    Related to #115; thanks @ilohmar for reporting!
---
 realgud/debugger/ipdb/init.el |    5 +++--
 realgud/debugger/pdb/init.el  |    3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/realgud/debugger/ipdb/init.el b/realgud/debugger/ipdb/init.el
index 96ef9e3..07ae8ad 100644
--- a/realgud/debugger/ipdb/init.el
+++ b/realgud/debugger/ipdb/init.el
@@ -71,10 +71,11 @@ realgud-loc-pat struct")
        :file-group 2
        :line-group 3))
 
-;;  Regular expression that describes a "delete breakpoint" line
+;; Regular expression that describes a "delete breakpoint" line
+;; Python 3 includes a file name and line number; Python 2 doesn't
 (setf (gethash "brkpt-del" realgud:ipdb-pat-hash)
       (make-realgud-loc-pat
-       :regexp "^Deleted breakpoint \\([0-9]+\\)\n"
+       :regexp "^Deleted breakpoint \\([0-9]+\\)"
        :num 1))
 
 (setf (gethash "font-lock-keywords" realgud:ipdb-pat-hash)
diff --git a/realgud/debugger/pdb/init.el b/realgud/debugger/pdb/init.el
index 9aa5b0b..ac346b8 100644
--- a/realgud/debugger/pdb/init.el
+++ b/realgud/debugger/pdb/init.el
@@ -71,9 +71,10 @@ realgud-loc-pat struct")
        :line-group 3))
 
 ;;  Regular expression that describes a "delete breakpoint" line
+;; Python 3 includes a file name and line number; Python 2 doesn't
 (setf (gethash "brkpt-del" realgud:pdb-pat-hash)
       (make-realgud-loc-pat
-       :regexp "^Deleted breakpoint \\([0-9]+\\)\n"
+       :regexp "^Deleted breakpoint \\([0-9]+\\)"
        :num 1))
 
 (setf (gethash "font-lock-keywords" realgud:pdb-pat-hash)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]