#NEWLINE# def _get_most_recently_used( last_used ) : #NEWLINE# #INDENT# 'Returns the name and date of the most recently used toggle' #NEWLINE# last_used = { k : v for ( k , v ) in last_used . iteritems ( ) if ( v != NOT_FOUND ) } #NEWLINE# most_recently_used = sorted ( last_used , key = last_used . get , reverse = True ) #NEWLINE# return ( { #NEWLINE# #INDENT# 'name' : most_recently_used [ 0 ] , #NEWLINE# 'date' : last_used [ most_recently_used [ 0 ] ] , #NEWLINE# #UNINDENT# } if last_used else None )