mirror of https://github.com/aristocratos/bpytop
Fix: bpytop.py; DeprecationWarning: 'count' is passed as positional argument (#428)
parent
ac0f6660be
commit
2034232931
|
@ -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(" ")
|
||||
|
|
Loading…
Reference in New Issue