Fix: bpytop.py; DeprecationWarning: 'count' is passed as positional argument (#428)

master
MeaTLoTioN 2025-06-01 21:57:08 +01:00 committed by GitHub
parent ac0f6660be
commit 2034232931
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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(" ")