#NEWLINE# @ swallow_exceptions ( logger ) #NEWLINE# def incr( self , key , delta = 1 ) : #NEWLINE# #INDENT# ' Increment a count.\n            @param key - the name of the stat.\n            @param delta - amount to increment the stat by. Must be positive.\n        ' #NEWLINE# assert isinstance ( delta , ( int , float , long ) ) #NEWLINE# assert ( delta >= 0 ) #NEWLINE# Stats . _check_key ( key ) #NEWLINE# if self . _client : #NEWLINE# #INDENT# self . _client . incr ( key , self )