diff options
author | Chris Johns <chrisj@rtems.org> | 2023-11-20 15:12:59 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2023-11-22 08:14:55 +1100 |
commit | 63396e2ed62be9b58c460ca6b10e434717c580b6 (patch) | |
tree | e861cf8633295be318473ec96f3fb88f2e62a661 /source-builder/sb/pkgconfig.py | |
parent | rtems-mipstx39-gdb-head.bset: Add missing file (diff) | |
download | rtems-source-builder-63396e2ed62be9b58c460ca6b10e434717c580b6.tar.bz2 |
sb: Fix Python 3.12 safeConfigParser and invalid escape sequences
Updates #4968
Diffstat (limited to 'source-builder/sb/pkgconfig.py')
-rwxr-xr-x | source-builder/sb/pkgconfig.py | 4 |
1 files 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 |