Skip to content

Commit ac07a6a

Browse files
committed
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)""",
1 parent 5b08631 commit ac07a6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/scriptgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ def gen_if_not_customized(self, folder, fname):
486486
def gen_repo(self, repodir, gen, f):
487487
if "$build" in gen:
488488
self.p(
489-
"""build=$(grep -o -E '(Build|Snapshot)[^-]*' __envsub/files_iso.lst | grep -o -E '[0-9]\.?[0-9]+(\.[0-9]+)*' | head -n 1)""",
489+
r"""build=$(grep -o -E '(Build|Snapshot)[^-]*' __envsub/files_iso.lst | grep -o -E '[0-9]\.?[0-9]+(\.[0-9]+)*' | head -n 1)""",
490490
f,
491491
)
492492
body = gen

0 commit comments

Comments
 (0)