File: 0002-Fix-missing-regex-raw-string.patch

package info (click to toggle)
pyqso 1.1.0-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,836 kB
  • sloc: python: 4,225; makefile: 151; sh: 18
file content (25 lines) | stat: -rw-r--r-- 711 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 79c99c1c1e98c7da086a5c8cc8f4ce3f9c4fc76a Mon Sep 17 00:00:00 2001
From: Tom Swartz <tom.swartz07@gmail.com>
Date: Thu, 14 Nov 2024 11:44:45 -0500
Subject: [PATCH 2/4] Fix missing regex raw-string

---
 pyqso/adif.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyqso/adif.py b/pyqso/adif.py
index 2869f2a..0d43274 100644
--- a/pyqso/adif.py
+++ b/pyqso/adif.py
@@ -269,7 +269,7 @@ class ADIF:
         n_eor = 0
         n_record = 0
         records = []
-        pattern = re.compile("<(.*?):(\d*).*?>([^<]+)")
+        pattern = re.compile(r"<(.*?):(\d*).*?>([^<]+)")
 
         for t in tokens:
             if(re.match("<eor>", t, flags=re.IGNORECASE) is not None):
-- 
2.45.2