# HG changeset patch # User Mads Kiilerich # Date 2024-09-22 21:28:57 # Node ID b9332da76d66383b82a8f88f72b8a94d7932917c # Parent aa51aca7fd1a543d669dbca660ee87a78d96d689 py3.13: Fix DeprecationWarning: 'count' is passed as positional argument diff --git a/kallithea/lib/feeds.py b/kallithea/lib/feeds.py --- a/kallithea/lib/feeds.py +++ b/kallithea/lib/feeds.py @@ -57,7 +57,7 @@ def get_tag_uri(url, date): "Creates a TagURI. See http://diveintomark.org/archives/2004/05/28/howto-atom-id" tag = re.sub('^http://', '', url) if date is not None: - tag = re.sub('/', ',%s:/' % date.strftime('%Y-%m-%d'), tag, 1) + tag = re.sub('/', ',%s:/' % date.strftime('%Y-%m-%d'), tag, count=1) tag = re.sub('#', '/', tag) return 'tag:' + tag