From 272c2ba80ea242bf9084d5066ec87237793989e0 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 8 Sep 2016 23:45:52 +0200 Subject: [PATCH] Flake8 --- tabakrolletjie/gamestate.py | 3 ++- tabakrolletjie/scenes/night.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.34.1