From 7de0c4c0baf076ee575a85a847e1422452b5d710 Mon Sep 17 00:00:00 2001 From: s0len Date: Thu, 21 May 2026 07:41:19 +0200 Subject: [PATCH] Fix invalid escape sequence warning in saxo regex f"\d+$" produced a SyntaxWarning on Python 3.12 (and will become a SyntaxError in a future release). The string has no interpolation, so the raw form r"\d+$" is the right fix. Co-Authored-By: Claude Opus 4.7 (1M context) --- grawlix/sources/saxo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grawlix/sources/saxo.py b/grawlix/sources/saxo.py index 77731ae..0d59b95 100644 --- a/grawlix/sources/saxo.py +++ b/grawlix/sources/saxo.py @@ -122,7 +122,7 @@ class Saxo(Source): :param url: Url of book :returns: Isbn of book """ - isbn_match = re.search(f"\d+$", url) + isbn_match = re.search(r"\d+$", url) if isbn_match and isbn_match.group(): return isbn_match.group() raise NotImplemented