From c38364e2a3d8127bf2a02b2236e48a173b1e446b Mon Sep 17 00:00:00 2001 From: Jonny Saunders Date: Tue, 24 Jun 2025 18:53:21 -0700 Subject: [PATCH] pass flags as kwargs deprecationwarning: 'count' is passed as positional argument --- bagit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bagit.py b/bagit.py index c9c1737..6594caf 100755 --- a/bagit.py +++ b/bagit.py @@ -1409,8 +1409,8 @@ def _encode_filename(s): def _decode_filename(s): - s = re.sub(r"%0D", "\r", s, re.IGNORECASE) - s = re.sub(r"%0A", "\n", s, re.IGNORECASE) + s = re.sub(r"%0D", "\r", s, flags=re.IGNORECASE) + s = re.sub(r"%0A", "\n", s, flags=re.IGNORECASE) return s