wacom: fix flake8 warnings

tuhi/wacom.py:18:1: F401 'sys' imported but unused
tuhi/wacom.py:22:1: F401 'tuhi.dbusserver.TuhiDBusServer' imported but unused
tuhi/wacom.py:23:1: F401 'tuhi.ble.BlueZDeviceManager' imported but unused
tuhi/wacom.py:52:1: E302 expected 2 blank lines, found 1
tuhi/wacom.py:140:13: E126 continuation line over-indented for hanging indent
tuhi/wacom.py:141:17: E131 continuation line unaligned for hanging indent
tuhi/wacom.py:592:1: W391 blank line at end of file

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
pull/1/head
Benjamin Tissoires 2018-01-12 20:14:26 +01:00
parent 79a95bbe18
commit 3491ff68e4
1 changed files with 3 additions and 7 deletions

View File

@ -15,13 +15,9 @@
import binascii import binascii
import logging import logging
import threading import threading
import sys
import time import time
from gi.repository import GObject from gi.repository import GObject
from tuhi.dbusserver import TuhiDBusServer
from tuhi.ble import BlueZDeviceManager
logging.basicConfig(level=logging.DEBUG) logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger('wacom') logger = logging.getLogger('wacom')
@ -49,6 +45,7 @@ SMARTPAD_UUID = 'dead00beef00'
SMARTPAD_UUID = '1d6adc5fac76' SMARTPAD_UUID = '1d6adc5fac76'
SMARTPAD_UUID = '4810d75d5d4d' SMARTPAD_UUID = '4810d75d5d4d'
def signed_char_to_int(v): def signed_char_to_int(v):
if v & 0x80: if v & 0x80:
return v - (1 << 8) return v - (1 << 8)
@ -137,8 +134,8 @@ class WacomDevice(GObject.Object):
""" """
__gsignals__ = { __gsignals__ = {
"drawing": "drawing":
(GObject.SIGNAL_RUN_FIRST, None, (GObject.TYPE_PYOBJECT,)), (GObject.SIGNAL_RUN_FIRST, None, (GObject.TYPE_PYOBJECT,)),
} }
def __init__(self, device): def __init__(self, device):
@ -589,4 +586,3 @@ class WacomDevice(GObject.Object):
def start(self): def start(self):
self.thread = threading.Thread(target=self.run) self.thread = threading.Thread(target=self.run)
self.thread.start() self.thread.start()