Fix bad-whitespace errors found by pylint

This commit is contained in:
Frederic Junod 2017-10-13 17:06:18 +02:00
parent 7af57c7fc4
commit 57204a215e
23 changed files with 66 additions and 66 deletions

View file

@ -60,22 +60,22 @@ class Module(bumblebee.engine.Module):
return u"?"
return self.city() + self.temperature()
def state( self, widget ):
def state(self, widget):
if self._valid:
if "thunderstorm" in self._weather:
return [ 'thunder' ]
return ['thunder']
elif "drizzle" in self._weather:
return [ 'rain' ]
return ['rain']
elif "rain" in self._weather:
return [ 'rain' ]
return ['rain']
elif "snow" in self._weather:
return [ 'snow' ]
return ['snow']
elif "sleet" in self._weather:
return [ 'sleet' ]
return ['sleet']
elif "clear" in self._weather:
return [ 'clear' ]
return ['clear']
elif "cloud" in self._weather:
return [ 'clouds' ]
return ['clouds']
else:
return []