summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-06 14:48:26 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-06 22:28:03 +0000
commit73ef8d57e0b906070509a028bd824f4137dad346 (patch)
tree3cbd3a95894dfed2bc9052d8f2056420cac45ab7 /bitbake/lib/toaster/toastergui/templatetags/projecttags.py
parent786ba56074ca9374ae5b4f7b06e1d554f8169d23 (diff)
downloadpoky-73ef8d57e0b906070509a028bd824f4137dad346.tar.gz
bitbake: toastergui: Fix regex markup issues
lib/toaster/toastergui/templatetags/projecttags.py:170: DeprecationWarning: invalid escape sequence '\$' value=re.sub('_\$.*', '', value) tests/views/test_views.py::ViewTests::test_custom_incomplete_params lib/toaster/toastergui/urls.py:211: DeprecationWarning: invalid escape sequence '\d' '/packages/(?P<package_id>\d+|)$', (Bitbake rev: 57c738a9118a7a900fc7353d88a385d52c8be6f5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templatetags/projecttags.py')
-rw-r--r--bitbake/lib/toaster/toastergui/templatetags/projecttags.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
index c432f59a78..bd398f0012 100644
--- a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
+++ b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
@@ -167,8 +167,8 @@ def check_filter_status(options, filter):
167def variable_parent_name(value): 167def variable_parent_name(value):
168 """ filter extended variable names to the parent name 168 """ filter extended variable names to the parent name
169 """ 169 """
170 value=re.sub('_\$.*', '', value) 170 value = re.sub(r'_\$.*', '', value)
171 return re.sub('_[a-z].*', '', value) 171 return re.sub(r'_[a-z].*', '', value)
172 172
173@register.filter 173@register.filter
174def filter_setin_files(file_list, matchstr): 174def filter_setin_files(file_list, matchstr):