#NEWLINE# def find_nodes( self , query ) : #NEWLINE# #INDENT# if ( query . pattern == 'foo' ) : #NEWLINE# #INDENT# ( yield BranchNode ( 'foo' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( query . pattern == 'bar.*' ) : #NEWLINE# #INDENT# for i in range ( 10 ) : #NEWLINE# #INDENT# path = 'bar.{0}' . format ( i ) #NEWLINE# ( yield LeafNode ( path , DummyReader ( path ) ) )