(self, format)
returns generator class given a format
returns generator class given a format
returns generator class given a format
def get_generator_by_format(self, format):
        """returns generator class given a format"""
        try:
            return self.format_generator_map[format].generator_class
        except KeyError:
            for info in self.format_generator_map.values():
                if format in info.generator_class.deprecated_format_names:
                    return info.generator_class
            raise
def get_generator_by_format ( self , format ) : try : return self . format_generator_map [ format ] . generator_class except KeyError : for info in self . format_generator_map . values ( ) : if format in info . generator_class . deprecated_format_names : return info . generator_class raise