#NEWLINE# @ classmethod #NEWLINE# def from_config( cls , config , name , section_key = 'extractors' ) : #NEWLINE# #INDENT# section = config [ section_key ] [ name ] #NEWLINE# if ( 'module' in section ) : #NEWLINE# #INDENT# return yamlconf . import_module ( section [ 'module' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'class' in section ) : #NEWLINE# #INDENT# Class = yamlconf . import_module ( section [ 'class' ] ) #NEWLINE# return Class . from_config ( config , section_key )