def _import_class(self, module2cls):
        """Import class by module dot split string"""
        d = module2cls.rfind(".")
        classname = module2cls[d + 1: len(module2cls)]
        m = __import__(module2cls[0:d], globals(), locals(), [classname])
        return getattr(m, classname)
def _import_class ( self , module2cls ) : d = module2cls . rfind ( "." ) classname = module2cls [ d + 1 : len ( module2cls ) ] m = __import__ ( module2cls [ 0 : d ] , globals ( ) , locals ( ) , [ classname ] ) return getattr ( m , classname )
Import class by module dot split string