def __init__(self, handler): if not IClientApp.implementedBy(handler.__class__): raise TypeError( 'handler must implement devicehive.interfaces.IClientApp interface.' ) self.handler = handler self.handler.factory = self self.command_callbacks = {}
def __init__(self, handler): if not IClientApp.implementedBy(handler.__class__) : raise TypeError('handler must implement devicehive.interfaces.IClientApp interface.') self.handler = handler self.handler.factory = self self.command_callbacks = {}