Jelajahi Sumber

Code cleanup

9and3r 11 tahun lalu
induk
melakukan
f59acc7a9e

+ 0 - 1
mopidy_touchscreen/list_view.py

@@ -1,6 +1,5 @@
 import logging
 
-
 from .touch_manager import TouchManager
 from .screen_objects import ScreenObjectsManager, TouchAndTextItem, ScrollBar
 

+ 2 - 1
mopidy_touchscreen/touch_screen.py

@@ -2,6 +2,7 @@ import pykka
 import traceback
 import logging
 from threading import Thread
+
 import pygame
 
 from mopidy import core
@@ -16,7 +17,7 @@ class TouchScreen(pykka.ThreadingActor, core.CoreListener):
     def __init__(self, config, core):
         super(TouchScreen, self).__init__()
         self.backend = \
-        pykka.ActorRegistry.get_by_class_name("TouchScreenBackend")[0]
+            pykka.ActorRegistry.get_by_class_name("TouchScreenBackend")[0]
         self.core = core
         self.running = False
         self.screen_size = (config['touchscreen']['screen_width'],

+ 1 - 2
mopidy_touchscreen/touch_screen_backend.py

@@ -1,7 +1,6 @@
 import logging
-import pykka
-
 
+import pykka
 from mopidy import backend
 
 

+ 2 - 1
tests/test_extension.py

@@ -3,7 +3,8 @@
 import unittest
 
 
-from mopidy_touchscreen import Extension, touch_screen as frontend_lib
+from mopidy_touchscreen import Extension
+# ,touch_screen as frontend_lib
 
 
 class ExtensionTest(unittest.TestCase):