This fixes:
.github/matrix.py:72: SyntaxWarning: "\." is an invalid escape sequence.
Such sequences will not work in the future. Did you mean "\\."? A raw string is
also an option.
return re.match('^v[0-9]+(\.[0-9]+)*$', version_string)
.github/matrix.py:89: SyntaxWarning: "\." is an invalid escape sequence.
Such sequences will not work in the future. Did you mean "\\."? A raw string is
also an option.
return re.match('^AWS-LC-FIPS-[0-9]+(\.[0-9]+)*$', version_string)
.github/matrix.py:106: SyntaxWarning: "\." is an invalid escape sequence.
Such sequences will not work in the future. Did you mean "\\."? A raw string is
also an option.
return re.match('^v[0-9]+(\.[0-9]+)*-stable$', version_string)
---
.github/matrix.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/matrix.py b/.github/matrix.py
index 7a5a23e27..bf2b30f5a 100755
--- a/.github/matrix.py
+++ b/.github/matrix.py
@@ -69,7 +69,7 @@ def aws_lc_version_string_to_num(version_string):
return tuple(map(int, version_string[1:].split('.')))
def aws_lc_version_valid(version_string):
- return re.match('^v[0-9]+(\.[0-9]+)*$', version_string)
+ return re.match(r'^v[0-9]+(\.[0-9]+)*$', version_string)
@functools.lru_cache(5)
def determine_latest_aws_lc(ssl):
@@ -86,7 +86,7 @@ def aws_lc_fips_version_string_to_num(version_string):
return tuple(map(int, version_string[12:].split('.')))
def aws_lc_fips_version_valid(version_string):
- return re.match('^AWS-LC-FIPS-[0-9]+(\.[0-9]+)*$', version_string)
+ return re.match(r'^AWS-LC-FIPS-[0-9]+(\.[0-9]+)*$', version_string)
@functools.lru_cache(5)
def determine_latest_aws_lc_fips(ssl):
@@ -103,7 +103,7 @@ def wolfssl_version_string_to_num(version_string):
return tuple(map(int,
version_string[1:].removesuffix('-stable').split('.')))
def wolfssl_version_valid(version_string):
- return re.match('^v[0-9]+(\.[0-9]+)*-stable$', version_string)
+ return re.match(r'^v[0-9]+(\.[0-9]+)*-stable$', version_string)
@functools.lru_cache(5)
def determine_latest_wolfssl(ssl):
--
2.53.0