Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _controlTransfer(self, request_type, request, value, index, data,
length, timeout):
result = libusb1.libusb_control_transfer(self.__handle, request_type,
request, value, index, data, length, timeout)
if result < 0:
raise libusb1.USBError(result)
return result
def _controlTransfer(
self, request_type, request, value, index, data, length, timeout):
result = libusb1.libusb_control_transfer(
self.__handle, request_type, request, value, index, data, length,
timeout,
)
mayRaiseUSBError(result)
return result
def _controlTransfer(self, request_type, request, value, index, data,
length, timeout):
result = libusb1.libusb_control_transfer(self.__handle, request_type,
request, value, index, data, length, timeout)
if result < 0:
raise libusb1.USBError(result)
return result