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])