[PATCH] sb: Fix python re warning for invalid escape sequences

chrisj at rtems.org chrisj at rtems.org
Mon Nov 20 04:14:03 UTC 2023


From: Chris Johns <chrisj at rtems.org>

---
 source-builder/sb/pkgconfig.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source-builder/sb/pkgconfig.py b/source-builder/sb/pkgconfig.py
index 198ec80..bfe769f 100755
--- a/source-builder/sb/pkgconfig.py
+++ b/source-builder/sb/pkgconfig.py
@@ -90,7 +90,7 @@ class package(object):
     get_recursion = ['cflags', 'libs']
     no_dup_flags = ['-I', '-l', '-L']
     dual_opts = ['-D', '-U', '-I', '-l', '-L']
-    lib_list_splitter = re.compile('[\s,]+')
+    lib_list_splitter = re.compile(r'[\s,]+')
     loaded_prefixes = None
     loaded = {}
 
@@ -514,7 +514,7 @@ class package(object):
             return None
         s = ''
         if self.file_:
-            mre = re.compile('\$\{[^\}]+\}')
+            mre = re.compile(r'\$\{[^\}]+\}')
             s = self.fields[label.lower()]
             expanded = True
             tm = False
-- 
2.37.1



More information about the devel mailing list