#NEWLINE# def getBindSourceSubset( self , targets ) : #NEWLINE# #INDENT# visited_binddict = collections . OrderedDict ( ) #NEWLINE# visited_sources = set ( ) #NEWLINE# for target in targets : #NEWLINE# #INDENT# termname = util . toTermname ( target ) #NEWLINE# ( r_binds , r_sources ) = self . getBindSubset ( termname , visited_sources ) #NEWLINE# visited_sources |= r_sources #NEWLINE# visited_binddict = util . dictlistmerge ( termname , r_binds ) #NEWLINE# #UNINDENT# return ( visited_binddict , visited_sources )