format code to be flake8 conform
This commit is contained in:
parent
7398bf9f94
commit
30789499f5
1 changed files with 9 additions and 9 deletions
|
@ -13,11 +13,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,
|
||||
bumblebee.output.Widget(full_text=self.brightness)
|
||||
)
|
||||
bumblebee.output.Widget(full_text=self.brightness))
|
||||
self._brightness = 0
|
||||
|
||||
self._device_path = self.parameter("device_path", "/sys/class/backlight/intel_backlight")
|
||||
|
@ -51,7 +51,7 @@ class Module(bumblebee.engine.Module):
|
|||
backlight = int(f.readline())
|
||||
with open("{}/max_brightness".format(self._device_path)) as f:
|
||||
max_brightness = int(f.readline())
|
||||
self._brightness = float(backlight*100/max_brightness)
|
||||
self._brightness = float(backlight * 100 / max_brightness)
|
||||
except:
|
||||
return "Error"
|
||||
|
||||
|
|
Loading…
Reference in a new issue