From 2f67055490160b8059eaf7de86f64c11f9a16dc1 Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Sat, 27 Jan 2024 20:37:45 +0100 Subject: [PATCH] Fix Python 3.12 SyntaxWarning --- bandcamp_dl/utils/unicode_slugify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bandcamp_dl/utils/unicode_slugify.py b/bandcamp_dl/utils/unicode_slugify.py index a0307f3..69d31a7 100644 --- a/bandcamp_dl/utils/unicode_slugify.py +++ b/bandcamp_dl/utils/unicode_slugify.py @@ -81,7 +81,7 @@ def slugify(s, ok=SLUG_OK, lower=True, spaces=False, only_ascii=False, space_rep if not spaces: if space_replacement and space_replacement not in ok: space_replacement = ok[0] if ok else '' - new = re.sub('[%s\s]+' % space_replacement, space_replacement, new) + new = re.sub(r'[%s\s]+' % space_replacement, space_replacement, new) if lower: new = new.lower()