commit:     8937e35a0efbf16983e7e305ba5bc388f8bacbe7
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue May 27 07:03:58 2025 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue May 27 07:03:58 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=8937e35a

auto-bootstrap/analyse_result: fix warning for Python 3.13

provide maxsplit argument as keyword-argument iso positional

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/auto-bootstraps/analyse_result.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/auto-bootstraps/analyse_result.py 
b/scripts/auto-bootstraps/analyse_result.py
index 2b8cda2af1..539a4ec084 100755
--- a/scripts/auto-bootstraps/analyse_result.py
+++ b/scripts/auto-bootstraps/analyse_result.py
@@ -219,10 +219,10 @@ def archSort(l, r):
     Sort by os, vendor, cpu
     """
     lcpu, lvendor, los = l.split('-', 2)
-    losname = re.split('[0-9]', los, 1)[0]
+    losname = re.split('[0-9]', los, maxsplit=1)[0]
     losver = los.split(losname, 1)[1]
     rcpu, rvendor, ros = r.split('-', 2)
-    rosname = re.split('[0-9]', ros, 1)[0]
+    rosname = re.split('[0-9]', ros, maxsplit=1)[0]
     rosver = ros.split(rosname, 1)[1]
 
     if losname > rosname:

Reply via email to