From: Neil Date: Thu, 8 Sep 2016 21:45:52 +0000 (+0200) Subject: Flake8 X-Git-Tag: tabakrolletjie-v1.0.0~174 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=272c2ba80ea242bf9084d5066ec87237793989e0;p=tabakrolletjie.git Flake8 --- diff --git a/tabakrolletjie/gamestate.py b/tabakrolletjie/gamestate.py index 03b5f23..ca7f961 100644 --- a/tabakrolletjie/gamestate.py +++ b/tabakrolletjie/gamestate.py @@ -27,7 +27,8 @@ class GameState(object): def seeds(self): if 'seeds' in self._state: return self._state['seeds'] - elif self._state["station"] and 'seeds' in self._state["station"]["config"]: + elif (self._state["station"] and + 'seeds' in self._state["station"]["config"]): self._state['seeds'] = self._state["station"]["config"]["seeds"] return self._state['seeds'] return 0 diff --git a/tabakrolletjie/scenes/night.py b/tabakrolletjie/scenes/night.py index 3f63f87..72e6c84 100644 --- a/tabakrolletjie/scenes/night.py +++ b/tabakrolletjie/scenes/night.py @@ -24,7 +24,6 @@ class NightScene(BaseScene): turnip = Turnip(space=self._space, **turnip_data) self._turnips.append(turnip) - @debug_timer("night.render") def render(self, surface, gamestate): surface.fill((0, 0, 155))