Browse Source

fix warning with re.subn and py3.13

pull/533/head
Simon Conseil 1 year ago
parent
commit
17b49b9c30
  1. 2
      src/sigal/plugins/titleregexp.py

2
src/sigal/plugins/titleregexp.py

@ -74,7 +74,7 @@ def titleregexp(album):
for r in cfg.get("regexp"):
album.title, n = re.subn(
r.get("search"), r.get("replace"), album.title, r.get("count", 0)
r.get("search"), r.get("replace"), album.title, count=r.get("count", 0)
)
total += n

Loading…
Cancel
Save