(cls, analyzer_class)
Registers an analyzer class.

        The analyzer classes are identified by their lower case name.

        Args:
            analyzer_class (type): the analyzer class to register.

        Raises:
            KeyError: if class is already set for the corresponding name.
Registers an analyzer class.
Registers an analyzer class .
def register_analyzer(cls, analyzer_class):
        """Registers an analyzer class.

        The analyzer classes are identified by their lower case name.

        Args:
            analyzer_class (type): the analyzer class to register.

        Raises:
            KeyError: if class is already set for the corresponding name.
        """
        analyzer_name = analyzer_class.NAME.lower()
        if analyzer_name in cls._class_registry:
            raise KeyError('Class already set for name: {0:s}.'.format(
                analyzer_class.NAME))
        cls._class_registry[analyzer_name] = analyzer_class
def register_analyzer ( cls , analyzer_class ) : analyzer_name = analyzer_class . NAME . lower ( ) if analyzer_name in cls . _class_registry : raise KeyError ( 'Class already set for name: {0:s}.' . format ( analyzer_class . NAME ) ) cls . _class_registry [ analyzer_name ] = analyzer_class