

def setConfiguration(self, configuration):
    'Set the active configuration of a device.\n\n        Arguments:\n            configuration: a configuration value or a Configuration object.\n        '
    if isinstance(configuration, Configuration):
        configuration = configuration.value
    self.dev.set_configuration(configuration)

dataset/ETHPy150Open walac/pyusb/usb/legacy.py DeviceHandle.setConfiguration/original