mirror of https://github.com/aristocratos/bpytop
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
parent
ac0f6660be
commit
15cafc542c
|
@ -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