#NEWLINE# def inc( self , key , value = None ) : #NEWLINE# #INDENT# if ( key not in self . keys ) : #NEWLINE# #INDENT# self . keys [ key ] = dict ( ) #NEWLINE# #UNINDENT# if ( value not in self . keys [ key ] ) : #NEWLINE# #INDENT# self . keys [ key ] [ value ] = 1 #NEWLINE# return True #NEWLINE# #UNINDENT# self . keys [ key ] [ value ] += 1 #NEWLINE# return False