소스 검색

Fix flake 8

9and3r 10 년 전
부모
커밋
6f452750f4
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      mopidy_touchscreen/input/input_manager.py

+ 4 - 2
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