<s> """<STR_LIT>""" <EOL> def import_class_from_module_string ( fqpn_str ) : <EOL> """<STR_LIT>""" <EOL> components = fqpn_str . split ( '<STR_LIT:.>' ) <EOL> nom_module_str = '<STR_LIT:.>' . join ( components [ : - <NUM_LIT:1> ] ) <EOL> class_name = components [ - <NUM_LIT:1> ] <EOL> nommer = __import__ ( nom_module_str , globals ( ) , locals ( ) , [ class_name ] ) <EOL> try : <EOL> return getattr ( nommer , class_name ) <EOL> except AttributeError : <EOL> raise ImportError ( '<STR_LIT>' % class_name ) </s>
