#NEWLINE# def _find_sections( self , sections , name_prefix , name ) : #NEWLINE# #INDENT# found = [ ] #NEWLINE# if ( name is None ) : #NEWLINE# #INDENT# if ( name_prefix in sections ) : #NEWLINE# #INDENT# found . append ( name_prefix ) #NEWLINE# #UNINDENT# name = 'main' #NEWLINE# #UNINDENT# for section in sections : #NEWLINE# #INDENT# if section . startswith ( ( name_prefix + ':' ) ) : #NEWLINE# #INDENT# if ( section [ ( len ( name_prefix ) + 1 ) : ] . strip ( ) == name ) : #NEWLINE# #INDENT# found . append ( section ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return sections