From c073cea9098bc841a0c84dd7a7b0434d7db635a8 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Fri, 22 Nov 2024 13:51:07 -0600 Subject: [PATCH] Placate ruff about version regex --- modepy/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modepy/version.py b/modepy/version.py index 2988bf9..4a72ad0 100644 --- a/modepy/version.py +++ b/modepy/version.py @@ -5,7 +5,7 @@ VERSION_TEXT = metadata.version("modepy") -_match = re.match("^([0-9.]+)([a-z0-9]*?)$", VERSION_TEXT) +_match = re.match(r"^([0-9.]+)([a-z0-9]*?)$", VERSION_TEXT) assert _match is not None VERSION_STATUS = _match.group(2) VERSION = tuple(int(nr) for nr in _match.group(1).split("."))