osmith has uploaded this change for review.

View Change

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(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/22/40522/1
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]

To view, visit change 40522. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I33ef4e16f3d3e4fa627f726d6fddd950b7826620
Gerrit-Change-Number: 40522
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>