summaryrefslogtreecommitdiffstats
path: root/media/libaom/cmakeparser.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
commitfbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch)
tree4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /media/libaom/cmakeparser.py
parentReleasing progress-linux version 124.0.1-1~progress7.99u1. (diff)
downloadfirefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz
firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'media/libaom/cmakeparser.py')
-rw-r--r--media/libaom/cmakeparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libaom/cmakeparser.py b/media/libaom/cmakeparser.py
index b93a313bce..261f05fb17 100644
--- a/media/libaom/cmakeparser.py
+++ b/media/libaom/cmakeparser.py
@@ -83,7 +83,7 @@ def substs(variables, values):
# Safe substitute leaves unrecognized variables in place.
# We replace them with the empty string.
- new_values.append(re.sub('\$\{\w+\}', '', new_value))
+ new_values.append(re.sub(r'\$\{\w+\}', '', new_value))
return new_values
@@ -240,7 +240,7 @@ def evaluate_boolean(variables, arguments):
# If statements can have old-style variables which are not demarcated
# like ${VARIABLE}. Attempt to look up the variable both ways.
try:
- if re.search('\$\{\w+\}', argument):
+ if re.search(r'\$\{\w+\}', argument):
try:
t = Template(argument)
value = t.substitute(variables)