(self, configuration)
r"""Set the active configuration of a device.

        Arguments:
            configuration: a configuration value or a Configuration object.
r"""Set the active configuration of a device.
r Set the active configuration of a device .
def setConfiguration(self, configuration):
        r"""Set the active configuration of a device.

        Arguments:
            configuration: a configuration value or a Configuration object.
        """
        if isinstance(configuration, Configuration):
           configuration = configuration.value

        self.dev.set_configuration(configuration)
def setConfiguration ( self , configuration ) : if isinstance ( configuration , Configuration ) : configuration = configuration . value self . dev . set_configuration ( configuration )