(cls, exporter_class)
Registers an exporter class.

        The exporter classes are identified by their lower export format.

        Args:
            exporter_class (type): the exporter class to register.

        Raises:
            KeyError: if class is already set for the corresponding name.
Registers an exporter class.
Registers an exporter class .
def register_exporter(cls, exporter_class):
        """Registers an exporter class.

        The exporter classes are identified by their lower export format.

        Args:
            exporter_class (type): the exporter class to register.

        Raises:
            KeyError: if class is already set for the corresponding name.
        """
        exporter_type = exporter_class.EXPORT_FORMAT.lower()
        if exporter_type in cls._class_registry:
            raise KeyError('Class already set for name: {0:s}.'.format(
                exporter_class.EXPORT_FORMAT))

        cls._class_registry[exporter_type] = exporter_class
def register_exporter ( cls , exporter_class ) : exporter_type = exporter_class . EXPORT_FORMAT . lower ( ) if exporter_type in cls . _class_registry : raise KeyError ( 'Class already set for name: {0:s}.' . format ( exporter_class . EXPORT_FORMAT ) ) cls . _class_registry [ exporter_type ] = exporter_class