Update bpytop.py - Fix DeprecatedWarning

/home/linuxbrew/.linuxbrew/bin/bpytop:5133: DeprecationWarning: 'count' is passed as positional argument
  name = re.sub( ".*" + rem_line + ".*:", "", line,1).lstrip()
pull/430/head
Yoon Kyong Sik 2025-03-11 17:13:21 +09:00 committed by GitHub
parent ac0f6660be
commit 15cafc542c
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(" ")