diff --git a/app/receiver.py b/app/receiver.py index 9924cbdb..58dc76fd 100644 --- a/app/receiver.py +++ b/app/receiver.py @@ -66,7 +66,7 @@ class _FeaturesArray(object): raise IndexError if self.features[index] is None: - # print "features getitem at %d" % index + # print ("features getitem at %d" % index) fs_index = self.features.index(_api.FEATURE.FEATURE_SET) # technically fs_function is 0x10 for this call, but we add the index to differentiate possibly conflicting requests fs_function = 0x10 | (index & 0x0F) @@ -81,7 +81,7 @@ class _FeaturesArray(object): if value in self.features: return True - # print "features contains %s" % repr(value) + # print ("features contains %s" % repr(value)) for index in range(0, len(self.features)): f = self.features[index] or self.__getitem__(index) assert f is not None diff --git a/app/solaar.py b/app/solaar.py index dda53d52..f9167337 100644 --- a/app/solaar.py +++ b/app/solaar.py @@ -62,12 +62,12 @@ def _check_requirements(): if __name__ == '__main__': - args = _parse_arguments() - req_fail = _check_requirements() if req_fail: raise ImportError('missing required package: %s' % req_fail) + args = _parse_arguments() + import ui # check if the notifications are available and enabled diff --git a/app/ui/main_window.py b/app/ui/main_window.py index 6e40ead4..532be721 100644 --- a/app/ui/main_window.py +++ b/app/ui/main_window.py @@ -257,7 +257,7 @@ def _update_receiver_box(frame, receiver): def _update_device_box(frame, dev): frame._device = dev - # print dev.name, dev.kind + # print (dev.name, dev.kind) icon, label, info_label = ui.find_children(frame, 'icon', 'label', 'info-label') diff --git a/lib/logitech/unifying_receiver/api.py b/lib/logitech/unifying_receiver/api.py index 2b2f97f6..2bc0db2c 100644 --- a/lib/logitech/unifying_receiver/api.py +++ b/lib/logitech/unifying_receiver/api.py @@ -245,7 +245,7 @@ class Receiver(object): return 0 if count is None else ord(count[1:2]) def __contains__(self, dev): - # print self, "contains", dev + # print (self, "contains", dev) if self.handle == 0: return False if type(dev) == int: diff --git a/lib/logitech/unifying_receiver/listener.py b/lib/logitech/unifying_receiver/listener.py index 21d16330..b17ae1b4 100644 --- a/lib/logitech/unifying_receiver/listener.py +++ b/lib/logitech/unifying_receiver/listener.py @@ -7,7 +7,6 @@ import threading as _threading from . import base as _base from .exceptions import NoReceiver as _NoReceiver from .common import Packet as _Packet -from .constants import MAX_ATTACHED_DEVICES as _MAX_ATTACHED_DEVICES # for both Python 2 and 3 try: @@ -27,7 +26,7 @@ class EventsListener(_threading.Thread): Incoming packets will be passed to the callback function in sequence. """ def __init__(self, receiver_handle, events_callback): - super(EventsListener, self).__init__(group='Unifying Receiver', name=self.__class__.__name__) + super(EventsListener, self).__init__(name=self.__class__.__name__) self.daemon = True self._active = False