osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40522?usp=email )
Change subject: testenv/podman_install: fix regex warning ......................................................................
testenv/podman_install: fix regex warning
Fix for the following warning with Python 3.12.3:
…/testenv/podman_install.py:120: SyntaxWarning: invalid escape sequence '\d' pattern = re.compile("^\d+.\d+.\d+$")
Change-Id: I33ef4e16f3d3e4fa627f726d6fddd950b7826620 --- M _testenv/testenv/podman_install.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: pespin: Looks good to me, but someone else must approve Jenkins Builder: Verified laforge: Looks good to me, but someone else must approve osmith: Looks good to me, approved
diff --git a/_testenv/testenv/podman_install.py b/_testenv/testenv/podman_install.py index adc2d70..9f40388 100644 --- a/_testenv/testenv/podman_install.py +++ b/_testenv/testenv/podman_install.py @@ -117,7 +117,7 @@ if testenv.args.binary_repo.endswith(":latest"): ls_remote = testenv.cmd.run(["git", "ls-remote", "--tags", url], capture_output=True, text=True, no_podman=True) tags = [] - pattern = re.compile("^\d+.\d+.\d+$") + pattern = re.compile("^\d+\.\d+\.\d+$") for line in ls_remote.stdout.split("\n"): if "refs/tags/" in line: tag = line.split("refs/tags/")[1].split("^")[0]