sea/app.py
def _register_servicer(self, servicer):
        """register serviser

        :param servicer: servicer
        """
        name = servicer.__name__
        if name in self._servicers:
            raise exceptions.ConfigException(
                'servicer duplicated: {}'.format(name))
        add_func = self._get_servicer_add_func(servicer)
        self._servicers[name] = (add_func, servicer)
def _register_servicer(self, servicer):
        """register serviser

        :param servicer: servicer
        """
        name = servicer.__name__
        if name in self._servicers:
            raise exceptions.ConfigException(
                'servicer duplicated: {}'.format(name))
        add_func = self._get_servicer_add_func(servicer)
        self._servicers[name] = (add_func, servicer)
def _register_servicer ( self , servicer ) : name = servicer . __name__ if name in self . _servicers : raise exceptions . ConfigException ( 'servicer duplicated: {}' . format ( name ) ) add_func = self . _get_servicer_add_func ( servicer ) self . _servicers [ name ] = ( add_func , servicer )
register serviser

        :param servicer: servicer
register serviser