From 41f22e6296549390d9fb66864cdf734c384df939 Mon Sep 17 00:00:00 2001 From: MeaTLoTioN Date: Sun, 19 Jan 2025 11:44:55 +0000 Subject: [PATCH] Fix: bpytop.py /usr/bin/bpytop:5133: DeprecationWarning: 'count' is passed as positional argument name = re.sub( ".*" + rem_line + ".*:", "", line,1).lstrip() --- bpytop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpytop.py b/bpytop.py index eff3704..0457b80 100755 --- a/bpytop.py +++ b/bpytop.py @@ -5130,7 +5130,7 @@ def get_cpu_name() -> str: if rem_line: for line in cmd_out.split("\n"): if rem_line in line: - name = re.sub( ".*" + rem_line + ".*:", "", line,1).lstrip() + name = re.sub(".*" + rem_line + ".*:", "", line, count=1).lstrip() else: name = cmd_out nlist = name.split(" ")