From f5b3f6aa0e059ba7b3da626a1fb2cc6596287250 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 9 Jul 2025 08:37:57 +0530 Subject: [PATCH] pep8 --- src/calibre/utils/formatter_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/utils/formatter_functions.py b/src/calibre/utils/formatter_functions.py index cb7ed25ff1..fb67965975 100644 --- a/src/calibre/utils/formatter_functions.py +++ b/src/calibre/utils/formatter_functions.py @@ -3493,7 +3493,7 @@ For example, the selector: def repl(mo): txt = mo.group() fmt_char = txt[1] - suffixes = re.split('\|', txt[3:-1]) + suffixes = re.split(r'\|', txt[3:-1]) match len(suffixes): case 1 if not suffixes[0]: zero_suffix = one_suffix = more_suffix = fmt_char.lower() + ' ' @@ -3537,7 +3537,7 @@ For example, the selector: case _: raise ValueError(_('The {} format specifier is not valid').format(fmt_char)) - s = re.sub('{.:?.*?}', repl, template) + s = re.sub(r'{.:?.*?}', repl, template) return s