Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2 usb/backend/libusb1.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

# transfer_type codes
# Control endpoint
_LIBUSB_TRANSFER_TYPE_CONTROL = 0,
_LIBUSB_TRANSFER_TYPE_CONTROL = 0
# Isochronous endpoint
_LIBUSB_TRANSFER_TYPE_ISOCHRONOUS = 1
# Bulk endpoint
Expand Down
62 changes: 31 additions & 31 deletions 62 usb/backend/openusb.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,37 +44,37 @@
__author__ = 'Wander Lairson Costa'

__all__ = [
'get_backend'
'OPENUSB_SUCCESS'
'OPENUSB_PLATFORM_FAILURE'
'OPENUSB_NO_RESOURCES'
'OPENUSB_NO_BANDWIDTH'
'OPENUSB_NOT_SUPPORTED'
'OPENUSB_HC_HARDWARE_ERROR'
'OPENUSB_INVALID_PERM'
'OPENUSB_BUSY'
'OPENUSB_BADARG'
'OPENUSB_NOACCESS'
'OPENUSB_PARSE_ERROR'
'OPENUSB_UNKNOWN_DEVICE'
'OPENUSB_INVALID_HANDLE'
'OPENUSB_SYS_FUNC_FAILURE'
'OPENUSB_NULL_LIST'
'OPENUSB_CB_CONTINUE'
'OPENUSB_CB_TERMINATE'
'OPENUSB_IO_STALL'
'OPENUSB_IO_CRC_ERROR'
'OPENUSB_IO_DEVICE_HUNG'
'OPENUSB_IO_REQ_TOO_BIG'
'OPENUSB_IO_BIT_STUFFING'
'OPENUSB_IO_UNEXPECTED_PID'
'OPENUSB_IO_DATA_OVERRUN'
'OPENUSB_IO_DATA_UNDERRUN'
'OPENUSB_IO_BUFFER_OVERRUN'
'OPENUSB_IO_BUFFER_UNDERRUN'
'OPENUSB_IO_PID_CHECK_FAILURE'
'OPENUSB_IO_DATA_TOGGLE_MISMATCH'
'OPENUSB_IO_TIMEOUT'
'get_backend',
'OPENUSB_SUCCESS',
'OPENUSB_PLATFORM_FAILURE',
'OPENUSB_NO_RESOURCES',
'OPENUSB_NO_BANDWIDTH',
'OPENUSB_NOT_SUPPORTED',
'OPENUSB_HC_HARDWARE_ERROR',
'OPENUSB_INVALID_PERM',
'OPENUSB_BUSY',
'OPENUSB_BADARG',
'OPENUSB_NOACCESS',
'OPENUSB_PARSE_ERROR',
'OPENUSB_UNKNOWN_DEVICE',
'OPENUSB_INVALID_HANDLE',
'OPENUSB_SYS_FUNC_FAILURE',
'OPENUSB_NULL_LIST',
'OPENUSB_CB_CONTINUE',
'OPENUSB_CB_TERMINATE',
'OPENUSB_IO_STALL',
'OPENUSB_IO_CRC_ERROR',
'OPENUSB_IO_DEVICE_HUNG',
'OPENUSB_IO_REQ_TOO_BIG',
'OPENUSB_IO_BIT_STUFFING',
'OPENUSB_IO_UNEXPECTED_PID',
'OPENUSB_IO_DATA_OVERRUN',
'OPENUSB_IO_DATA_UNDERRUN',
'OPENUSB_IO_BUFFER_OVERRUN',
'OPENUSB_IO_BUFFER_UNDERRUN',
'OPENUSB_IO_PID_CHECK_FAILURE',
'OPENUSB_IO_DATA_TOGGLE_MISMATCH',
'OPENUSB_IO_TIMEOUT',
'OPENUSB_IO_CANCELED'
]

Expand Down
12 changes: 6 additions & 6 deletions 12 usb/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

def _set_attr(input, output, fields):
for f in fields:
setattr(output, f, getattr(input, f))
setattr(output, f, getattr(input, f))

def _try_getattr(object, name):
try:
Expand Down Expand Up @@ -115,7 +115,7 @@ def wrapper(self, *args, **kwargs):
self.lock.release()
return wrapper

class _ResourceManager(object):
class _ResourceManager():
def __init__(self, dev, backend):
self.backend = backend
self._active_cfg_index = None
Expand Down Expand Up @@ -145,7 +145,7 @@ def managed_set_configuration(self, device, config):
elif isinstance(config, Configuration):
cfg = config
elif config == 0: # unconfigured state
class MockConfiguration(object):
class MockConfiguration():
def __init__(self):
self.index = None
self.bConfigurationValue = 0
Expand Down Expand Up @@ -316,7 +316,7 @@ class NoBackendError(ValueError):
r"Exception class when a valid backend is not found."
pass

class Endpoint(object):
class Endpoint():
r"""Represent an endpoint object.

This class contains all fields of the Endpoint Descriptor according to the
Expand Down Expand Up @@ -445,7 +445,7 @@ def _str(self):
_lu.ep_attributes[(self.bmAttributes & 0x3)],
direction))

class Interface(object):
class Interface():
r"""Represent an interface object.

This class contains all fields of the Interface Descriptor
Expand Down Expand Up @@ -582,7 +582,7 @@ def _get_full_descriptor_str(self):
_try_get_string(self.device, self.iInterface))


class Configuration(object):
class Configuration():
r"""Represent a configuration object.

This class contains all fields of the Configuration Descriptor according to
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.