#NEWLINE# def resolve( self ) : #NEWLINE# #INDENT# for ( collection , source ) in self . parent . resolve ( ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# value = collection [ self . key ] #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# raise ConfigTypeError ( '{0} must be a collection, not {1}' . format ( self . parent . name , type ( collection ) . __name__ ) ) #NEWLINE# #UNINDENT# ( yield ( value , source ) )