def get_pelican_cls(settings):
 cls = settings['PELICAN_CLASS']
 if isinstance(cls, six.string_types):
  (module, cls_name) = cls.rsplit('.', 1)
  module = __import__(module)
  cls = getattr(module, cls_name)
 return cls

def get_pelican_cls ( settings ) : cls = settings [ 'PELICAN_CLASS' ] if isinstance ( cls , six . string_types ) : ( module , cls_name ) = cls . rsplit ( '.' , 1 ) module = __import__ ( module ) cls = getattr ( module , cls_name ) return cls
get the pelican class requested in settings .