From 17b49b9c3027a3a79fe0a201047b00c5818050df Mon Sep 17 00:00:00 2001 From: Simon Conseil Date: Mon, 16 Dec 2024 18:30:47 +0100 Subject: [PATCH] fix warning with re.subn and py3.13 --- src/sigal/plugins/titleregexp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sigal/plugins/titleregexp.py b/src/sigal/plugins/titleregexp.py index d46e776..363bc41 100644 --- a/src/sigal/plugins/titleregexp.py +++ b/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