summaryrefslogtreecommitdiffstats
path: root/media/libaom/cmakeparser.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /media/libaom/cmakeparser.py
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-adbda400be353e676059e335c3c0aaf99e719475.tar.xz
firefox-adbda400be353e676059e335c3c0aaf99e719475.zip
Adding upstream version 125.0.1.upstream/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)