(self, transfer=None)
Create a transfer callback dispatcher.

        transfer parameter is deprecated. If provided, it will be equivalent
        to:
            helper = USBTransferHelper()
            transfer.setCallback(helper)
        and also allows using deprecated methods on this class (otherwise,
        they raise AttributeError).
Create a transfer callback dispatcher.
Create a transfer callback dispatcher .
def __init__(self, transfer=None):
        """
        Create a transfer callback dispatcher.

        transfer parameter is deprecated. If provided, it will be equivalent
        to:
            helper = USBTransferHelper()
            transfer.setCallback(helper)
        and also allows using deprecated methods on this class (otherwise,
        they raise AttributeError).
        """
        if transfer is not None:
            # Deprecated: to drop
            self.__transfer = transfer
            transfer.setCallback(self)
        self.__event_callback_dict = {}
        self.__errorCallback = DEFAULT_ASYNC_TRANSFER_ERROR_CALLBACK
def __init__ ( self , transfer = None ) : if transfer is not None : # Deprecated: to drop self . __transfer = transfer transfer . setCallback ( self ) self . __event_callback_dict = { } self . __errorCallback = DEFAULT_ASYNC_TRANSFER_ERROR_CALLBACK