Skip to content

Commit

Permalink
Fix Python 3.12 SyntaxWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolson authored Jan 27, 2024
1 parent fcd4f67 commit 2f67055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bandcamp_dl/utils/unicode_slugify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 2f67055

Please sign in to comment.