@@ -300,7 +300,7 @@ def _open_cb(self, interface_desc_view):
300
300
i = 0
301
301
while i < len (interface_desc_view ):
302
302
# descriptor length, type, and index (if it's an interface descriptor)
303
- dl , dt , di = interface_desc_view [i : i + 3 ]
303
+ dl , dt , di = interface_desc_view [i : i + 3 ]
304
304
if dt == _STD_DESC_INTERFACE_TYPE :
305
305
if di >= self ._usbd .static .itf_max :
306
306
di -= self ._usbd .static .itf_max
@@ -602,7 +602,7 @@ def submit_xfer(self, ep_addr, data, done_cb=None):
602
602
# Note that done_cb may be called immediately, possibly before this
603
603
# function has returned to the caller.
604
604
if not self ._open :
605
- raise RuntimeError ()
605
+ raise RuntimeError
606
606
return get_usbdevice ()._submit_xfer (ep_addr , data , done_cb )
607
607
608
608
def set_ep_stall (self , ep_addr , stall ):
@@ -612,7 +612,7 @@ def set_ep_stall(self, ep_addr, stall):
612
612
# there are some device classes that need to explicitly stall or unstall
613
613
# an endpoint under certain conditions.
614
614
if not self ._open or ep_addr not in get_usbdevice ()._eps :
615
- raise RuntimeError ()
615
+ raise RuntimeError
616
616
get_usbdevice ()._usbd .set_ep_stall (ep_addr , stall )
617
617
618
618
def get_ep_stall (self , ep_addr ):
@@ -621,5 +621,5 @@ def get_ep_stall(self, ep_addr):
621
621
# Endpoint can be stalled/unstalled by host, TinyUSB stack, or calls to
622
622
# set_ep_stall().
623
623
if not self ._open or ep_addr not in get_usbdevice ()._eps :
624
- raise RuntimeError ()
624
+ raise RuntimeError
625
625
return get_usbdevice ()._usbd .get_ep_stall (ep_addr )
0 commit comments