Skip to content

Commit

Permalink
Fix code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Apr 29, 2021
1 parent 7881855 commit 7f8dce2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 7f8dce2

Please sign in to comment.