def __init__(self, verbose=False, logger=None): self.inner = StreamHandler(sys.stdout, MachFormatter()) BaseHandler.__init__(self, self.inner) self.product = None self.verbose = verbose self.logger = logger self.register_message_handlers("wptrunner-test", {"set-product": self.set_product})
def __init__(self, inner, actions): BaseHandler.__init__(self, inner) self.inner = inner self.actions = actions
def __init__(self, inner, actions): """Extend BaseHandler and set inner and actions props on self.""" BaseHandler.__init__(self, inner) self.inner = inner self.actions = actions