(self, descriptor)
return descriptor_string.value.decode('ASCII')
Fetch description string for given descriptor in first available
        language.
        Return value is an ASCII string.
        Return None if there is no such descriptor on device.
Fetch description string for given descriptor in first available
        language.
        Return value is an ASCII string.
        Return None if there is no such descriptor on device.
Fetch description string for given descriptor in first available language . Return value is an ASCII string . Return None if there is no such descriptor on device .
def getASCIIStringDescriptor(self, descriptor):
        """
        Fetch description string for given descriptor in first available
        language.
        Return value is an ASCII string.
        Return None if there is no such descriptor on device.
        """
        descriptor_string = create_binary_buffer(STRING_LENGTH)
        result = libusb1.libusb_get_string_descriptor_ascii(self.__handle,
             descriptor, descriptor_string, sizeof(descriptor_string))
        if result == libusb1.LIBUSB_ERROR_NOT_FOUND:
            return None
        if result < 0:
            raise libusb1.USBError(result)
        return descriptor_string.value.decode('ASCII')
def getASCIIStringDescriptor ( self , descriptor ) : descriptor_string = create_binary_buffer ( STRING_LENGTH ) result = libusb1 . libusb_get_string_descriptor_ascii ( self . __handle , descriptor , descriptor_string , sizeof ( descriptor_string ) ) if result == libusb1 . LIBUSB_ERROR_NOT_FOUND : return None if result < 0 : raise libusb1 . USBError ( result ) return descriptor_string . value . decode ( 'ASCII' )