Skip to content

Commit

Permalink
Merge pull request #217 from dnicolson/patch-1
Browse files Browse the repository at this point in the history
Fix Python 3.12 SyntaxWarning
  • Loading branch information
Evolution0 authored Jan 28, 2024
2 parents fcd4f67 + 2f67055 commit 79f1738
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 79f1738

Please sign in to comment.