#NEWLINE# def __contains__( self , item ) : #NEWLINE# #INDENT# if isinstance ( item , IndexObject ) : #NEWLINE# #INDENT# for info in self . _cache : #NEWLINE# #INDENT# if ( item . binsha == info [ 0 ] ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# path = self . path #NEWLINE# for info in self . _cache : #NEWLINE# #INDENT# if ( item == join_path ( path , info [ 2 ] ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False