From 6f452750f4fa79dc749366208c80dce6554d5f16 Mon Sep 17 00:00:00 2001 From: 9and3r <9and3r@gmail.com> Date: Sun, 24 May 2015 16:13:34 +0200 Subject: [PATCH] Fix flake 8 --- mopidy_touchscreen/input/input_manager.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mopidy_touchscreen/input/input_manager.py b/mopidy_touchscreen/input/input_manager.py index 4a1f5dc..bda2493 100644 --- a/mopidy_touchscreen/input/input_manager.py +++ b/mopidy_touchscreen/input/input_manager.py @@ -91,12 +91,14 @@ class InputManager(): else: return None if direction is not None: - if time.time() - self.down_time > InputManager.long_click_min_time: + if time.time() - self.down_time > \ + InputManager.long_click_min_time: longpress = True else: longpress = False return InputEvent(InputManager.key, None, None, None, - direction, self.last_key, longpress=longpress) + direction, self.last_key, + longpress=longpress) def mouse_down(self, event): self.down_pos = event.pos