[XS] Change in osmo-ttcn3-hacks[master]: testenv/podman_install: fix regex warning
osmith has uploaded this change for review. ( 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(-) 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 https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40522?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email 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>
participants (1)
-
osmith