From 7c4f5e0542a3ba29076c5f305844f5ddd5027243 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Tue, 12 Nov 2024 19:22:18 +0900 Subject: [PATCH] units.py: pass `count' as a keyword argument After upgrading to Fedora 41, I got: ./misc/units.py:366: DeprecationWarning: 'count' is passed as positional argument input_expected = './Units' + re.sub(r'^.*?/Units', r'', input_actual, 1) when running "make units". Signed-off-by: Masatake YAMATO --- misc/units.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/units.py b/misc/units.py index 571a52a126..820e49b64e 100755 --- a/misc/units.py +++ b/misc/units.py @@ -362,7 +362,7 @@ def prepare_bundles(frm, to, obundles): def anon_normalize_sub(internal, ctags, input_actual, *args): # TODO: "Units" should not be hardcoded. - input_expected = './Units' + re.sub(r'^.*?/Units', r'', input_actual, 1) + input_expected = './Units' + re.sub(r'^.*?/Units', r'', input_actual, count=1) ret = subprocess.run([CTAGS, '--quiet', '--options=NONE', '--_anonhash=' + input_actual], stdout=subprocess.PIPE)