#NEWLINE# def update_highlights( self , old_highlight_set , new_highlight_set ) : #NEWLINE# #INDENT# 'Unhighlight the entries represented by ``old_highlight_set``\n        and highlight the ones represented by ``new_highlight_set``.\n\n        Both are sets of keys.\n\n        ' #NEWLINE# un_hilite_set = ( old_highlight_set - new_highlight_set ) #NEWLINE# re_hilite_set = ( new_highlight_set - old_highlight_set ) #NEWLINE# for key in un_hilite_set : #NEWLINE# #INDENT# self . _highlight_path ( key , False ) #NEWLINE# #UNINDENT# for key in self : #NEWLINE# #INDENT# self . _highlight_path ( key , True )