From ac07a6ab55fa6fd8820560b7d76ed649c6bfaadf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Wed, 19 Mar 2025 12:08:41 +0100 Subject: [PATCH] Avoid warning about escape sequence in python 3.12 https://docs.python.org/dev/whatsnew/3.12.html#other-language-changes /script/scriptgen.py:489: SyntaxWarning: invalid escape sequence '\.' """build=$(grep -o -E '(Build|Snapshot)[^-]*' __envsub/files_iso.lst | grep -o -E '[0-9]\.?[0-9]+(\.[0-9]+)*' | head -n 1)""", --- script/scriptgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/scriptgen.py b/script/scriptgen.py index 43ef5068..1f3c851d 100644 --- a/script/scriptgen.py +++ b/script/scriptgen.py @@ -486,7 +486,7 @@ def gen_if_not_customized(self, folder, fname): def gen_repo(self, repodir, gen, f): if "$build" in gen: self.p( - """build=$(grep -o -E '(Build|Snapshot)[^-]*' __envsub/files_iso.lst | grep -o -E '[0-9]\.?[0-9]+(\.[0-9]+)*' | head -n 1)""", + r"""build=$(grep -o -E '(Build|Snapshot)[^-]*' __envsub/files_iso.lst | grep -o -E '[0-9]\.?[0-9]+(\.[0-9]+)*' | head -n 1)""", f, ) body = gen