From 8a765f43e2fd41418837dee3135914fb684dbd1f Mon Sep 17 00:00:00 2001 From: Bas van den Heuvel Date: Wed, 21 Aug 2019 21:20:04 +0200 Subject: [PATCH] PEP8 --- bumblebee/modules/sun.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bumblebee/modules/sun.py b/bumblebee/modules/sun.py index 60a27d0..a614120 100644 --- a/bumblebee/modules/sun.py +++ b/bumblebee/modules/sun.py @@ -20,9 +20,11 @@ import bumblebee.input import bumblebee.output import bumblebee.engine + class Module(bumblebee.engine.Module): def __init__(self, engine, config): - super(Module, self).__init__(engine, config, + super(Module, self).__init__( + engine, config, bumblebee.output.Widget(full_text=self.suntimes) ) self.interval(3600) @@ -41,7 +43,8 @@ class Module(bumblebee.engine.Module): def suntimes(self, _): if self._sunset and self._sunrise: - return u"\u21A5{} \u21A7{}".format(self._sunrise.strftime('%H:%M'), self._sunset.strftime('%H:%M')) + return u"\u21A5{} \u21A7{}".format(self._sunrise.strftime('%H:%M'), + self._sunset.strftime('%H:%M')) return "?" def _calculate_times(self):