diff options
| -rw-r--r-- | debian/changelog | 7 | ||||
| -rw-r--r-- | debian/patches/fix-syntaxwarning.patch | 24 | ||||
| -rw-r--r-- | debian/patches/series | 1 |
3 files changed, 32 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index ff67aec..07ae043 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +python-alarmdecoder (1.13.11-3) unstable; urgency=medium + + * Team upload. + * fix regex syntaxwarnings (Closes: #1085838) + + -- Ananthu C V <weepingclown@debian.org> Mon, 25 May 2026 01:20:04 +0700 + python-alarmdecoder (1.13.11-2) unstable; urgency=medium * Re-upload source-only. diff --git a/debian/patches/fix-syntaxwarning.patch b/debian/patches/fix-syntaxwarning.patch new file mode 100644 index 0000000..15e901e --- /dev/null +++ b/debian/patches/fix-syntaxwarning.patch @@ -0,0 +1,24 @@ +Description: use raw strings for regex +Author: Ananthu C V <wepeingclown@debian.org> +Last-Update: 2026-05-25 +--- a/alarmdecoder/decoder.py ++++ b/alarmdecoder/decoder.py +@@ -604,3 +604,3 @@ + +- matches = re.match('^!Sending(\.{1,5})done.*', data) ++ matches = re.match(r'^!Sending(\.{1,5})done.*', data) + if matches is not None: +--- a/alarmdecoder/messages/panel_message.py ++++ b/alarmdecoder/messages/panel_message.py +@@ -72,3 +72,3 @@ + +- _regex = re.compile('^(!KPM:){0,1}(\[[a-fA-F0-9\-]+\]),([a-fA-F0-9]+),(\[[a-fA-F0-9]+\]),(".+")$') ++ _regex = re.compile(r'^(!KPM:){0,1}(\[[a-fA-F0-9\-]+\]),([a-fA-F0-9]+),(\[[a-fA-F0-9]+\]),(".+")$') + +--- a/alarmdecoder/zonetracking.py ++++ b/alarmdecoder/zonetracking.py +@@ -185,3 +185,3 @@ + if zone == 191: +- zone_regex = re.compile('^CHECK (\d+).*$') ++ zone_regex = re.compile(r'^CHECK (\d+).*$') + diff --git a/debian/patches/series b/debian/patches/series index de5946c..32cbf06 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ do-not-use-nose-or-mock.patch use-system-mock.patch do-not-use-assertEquals.patch +fix-syntaxwarning.patch |
