From 7f8dce2bdfb4ec70fff2556d9bcecdf69b929fe2 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Thu, 29 Apr 2021 13:05:49 +0200 Subject: [PATCH] Fix code style. --- compal/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compal/__init__.py b/compal/__init__.py index 7f638ae..e14297f 100644 --- a/compal/__init__.py +++ b/compal/__init__.py @@ -258,7 +258,9 @@ def system_info(self): cm_system_uptime = xml.find("cm_system_uptime") if cm_system_uptime is not None: - match = re.match(r"^(\d+)day(?:\(s\))?(\d+)h?\:(\d+)m?\:(\d+)s?$", cm_system_uptime.text) + match = re.match( + r"^(\d+)day(?:\(s\))?(\d+)h?\:(\d+)m?\:(\d+)s?$", cm_system_uptime.text + ) days = int(match[1]) hours = int(match[2]) minutes = int(match[3])