Skip to content

Commit 73c4da1

Browse files
resolve regex library warnings (#237)
Signed-off-by: Emmanuel Ferdman <[email protected]>
1 parent 76204a8 commit 73c4da1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

s_tui/helper_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def get_processor_name():
5252
all_info = cpuinfo.readlines()
5353
for line in all_info:
5454
if b"model name" in line:
55-
return re.sub(b".*model name.*:", b"", line, 1)
55+
return re.sub(b".*model name.*:", b"", line, count=1)
5656
elif platform.system() == "FreeBSD":
5757
cmd = ["sysctl", "-n", "hw.model"]
5858
process = subprocess.Popen(

0 commit comments

Comments
 (0)