Fix flake8-3 complaints
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
9a97f19a13
commit
4b02a6f51c
10
tuhi/base.py
10
tuhi/base.py
|
@ -348,10 +348,10 @@ class Tuhi(GObject.Object):
|
|||
|
||||
# create the device if unknown from us
|
||||
if bluez_device.address not in self.devices:
|
||||
d = TuhiDevice(bluez_device, self.config, uuid, mode)
|
||||
d.dbus_device = self.server.create_device(d)
|
||||
d.connect('notify::listening', self._on_listening_updated)
|
||||
self.devices[bluez_device.address] = d
|
||||
d = TuhiDevice(bluez_device, self.config, uuid, mode)
|
||||
d.dbus_device = self.server.create_device(d)
|
||||
d.connect('notify::listening', self._on_listening_updated)
|
||||
self.devices[bluez_device.address] = d
|
||||
|
||||
d = self.devices[bluez_device.address]
|
||||
|
||||
|
@ -399,5 +399,3 @@ def main(args=sys.argv):
|
|||
Tuhi().run()
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
finally:
|
||||
pass
|
||||
|
|
|
@ -229,7 +229,7 @@ class BlueZDevice(GObject.Object):
|
|||
result.code == Gio.IOErrorEnum.DBUS_ERROR and
|
||||
Gio.dbus_error_get_remote_error(result) == 'org.bluez.Error.Failed' and
|
||||
'Operation already in progress' in result.message):
|
||||
logger.debug(f'{self.address}: Already connecting')
|
||||
logger.debug(f'{self.address}: Already connecting')
|
||||
elif isinstance(result, Exception):
|
||||
logger.error(f'Connection failed: {result}')
|
||||
|
||||
|
|
|
@ -910,7 +910,7 @@ class WacomProtocolSlate(WacomProtocolSpark):
|
|||
|
||||
def live_mode(self, mode, uhid):
|
||||
# Slate tablet has two models A5 and A4
|
||||
# Here, we read real tablet dimensions before
|
||||
# Here, we read real tablet dimensions before
|
||||
# starting live mode
|
||||
self.width = self.get_dimensions('width')
|
||||
self.height = self.get_dimensions('height')
|
||||
|
|
Loading…
Reference in New Issue