From: Luca Boccassi Date: Fri, 30 May 2025 00:59:15 +0000 (+0100) Subject: sync-docs: fix syntax warning X-Git-Tag: v258-rc1~442^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34d63ac87930ab64cb0f7b9a956ee91ba29148f0;p=thirdparty%2Fsystemd.git sync-docs: fix syntax warning sync-docs.py:94: SyntaxWarning: invalid escape sequence '\d' m = re.match("v?(\d+).*", tag) --- diff --git a/tools/sync-docs.py b/tools/sync-docs.py index 86fe1a8ed7e..ab10413c3a9 100755 --- a/tools/sync-docs.py +++ b/tools/sync-docs.py @@ -85,7 +85,7 @@ def get_latest_version(): tags = subprocess.check_output(["git", "tag", "-l", "v*"], text=True).split() versions = [] for tag in tags: - m = re.match("v?(\d+).*", tag) + m = re.match(r"v?(\d+).*", tag) if m: versions.append(int(m.group(1))) return max(versions)