#NEWLINE# def __rewrite_tsdb_line( self , line ) : #NEWLINE# #INDENT# 'Rewrites the TSDB line emitted by the collectors to the format used by the agent-metrics parser.' #NEWLINE# match = self . __timestamp_matcher . match ( line ) #NEWLINE# if ( match is not None ) : #NEWLINE# #INDENT# line = ( '%s %s' % ( match . group ( 1 ) , match . group ( 2 ) ) ) #NEWLINE# #UNINDENT# line = self . __key_value_matcher . sub ( '\\1="\\2"' , line ) #NEWLINE# return line