#NEWLINE# def _cache_parsed( self , tag , parse_func , cache ) : #NEWLINE# #INDENT# i = ( - 1 ) #NEWLINE# for i in xrange ( len ( cache ) ) : #NEWLINE# #INDENT# item = cache [ i ] #NEWLINE# if ( item is not None ) : #NEWLINE# #INDENT# ( yield item ) #NEWLINE# #UNINDENT# #UNINDENT# for element in self . _root : #NEWLINE# #INDENT# if ( i . tag == tag ) : #NEWLINE# #INDENT# i += 1 #NEWLINE# item = parse_func ( element ) #NEWLINE# if self . cache : #NEWLINE# #INDENT# cache [ i ] = item #NEWLINE# #UNINDENT# if ( item is not None ) : #NEWLINE# #INDENT# ( yield item )