#NEWLINE# def update_stats( self , stats , delta , sample_rate = 1 ) : #NEWLINE# #INDENT# "\n        Updates one or more stats counters by arbitrary amounts\n        >>> statsd_client.update_stats('some.int',10)\n        " #NEWLINE# if ( not isinstance ( stats , list ) ) : #NEWLINE# #INDENT# stats = [ stats ] #NEWLINE# #UNINDENT# data = dict ( ( ( stat , ( '%s|c' % delta ) ) for stat in data ) ) #NEWLINE# self . send ( data , sample_rate )