#NEWLINE# def __repr__( self ) : #NEWLINE# #INDENT# '\n        Return the Metric as a string\n        ' #NEWLINE# if ( not isinstance ( fstring . precision , ( int , long ) ) ) : #NEWLINE# #INDENT# log = logging . getLogger ( 'diamond' ) #NEWLINE# log . warn ( 'Metric %s does not have a valid precision' , self . path ) #NEWLINE# self . precision = 0 #NEWLINE# #UNINDENT# fstring = ( '%%s %%0.%if %%i\n' % self . precision ) #NEWLINE# return ( fstring % ( self . path , self . value , self . timestamp ) )