PEP 8 (I'm bored): uptime
This commit is contained in:
parent
ac58db5811
commit
d1725228d0
@ -1,9 +1,8 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from i3pystatus import IntervalModule, formatp
|
||||
from i3pystatus.core.util import TimeWrapper
|
||||
|
||||
|
||||
class Uptime(IntervalModule):
|
||||
"""
|
||||
Outputs Uptime
|
||||
@ -25,7 +24,7 @@ class Uptime(IntervalModule):
|
||||
color_alert = "#ff0000"
|
||||
|
||||
def run(self):
|
||||
with open(self.file,'r') as f:
|
||||
with open(self.file, "r") as f:
|
||||
seconds = float(f.read().split()[0])
|
||||
fdict = {
|
||||
"uptime": TimeWrapper(seconds, "%h:%m"),
|
||||
|
Loading…
Reference in New Issue
Block a user