Skip to content

Commit 4e7b694

Browse files
committed
usb1: Fix exception raised during handleEvents.
Fixes errors like: File "usb1/__init__.py", line 2375, in handleEvents self.__mayRaiseUSBError( File "usb1/__init__.py", line 127, in mayRaiseUSBError if value < 0: TypeError: '<' not supported between instances of 'USBContext' and 'int'
1 parent 71f1651 commit 4e7b694

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

usb1/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2079,7 +2079,7 @@ class USBContext:
20792079
__poll_cb_user_data = None
20802080
__auto_open = True
20812081
__has_pollfd_finalizer = False
2082-
__mayRaiseUSBError = mayRaiseUSBError
2082+
__mayRaiseUSBError = staticmethod(mayRaiseUSBError)
20832083
__libusb_handle_events = None
20842084

20852085
# pylint: disable=no-self-argument,protected-access

0 commit comments

Comments
 (0)