fix: Code standards (#1393)

This commit is contained in:
yyhhyy
2024-04-09 21:01:32 +08:00
committed by GitHub
parent 4fe10c0906
commit 0f2b46da62
4 changed files with 10 additions and 6 deletions

View File

@@ -189,7 +189,7 @@ def get_cpu_info():
match = re.search(r".*Model name:\s*(.+)", output)
if match:
cpu_info = match.group(1).strip()
match = re.search(f".*型号名称:\s*(.+)", output)
match = re.search(r".*型号名称:\s*(.+)", output)
if match:
cpu_info = match.group(1).strip()
except: