#NEWLINE# def _convert_tripplet( self , tripplet ) : #NEWLINE# #INDENT# " Turn '10,178,528' into tuple of integers " #NEWLINE# splitted = tripplet . split ( ',' ) #NEWLINE# if ( len ( splitted ) != 3 ) : #NEWLINE# #INDENT# self . log . debug ( 'Got %i chunks, expected 3.' , len ( splitted ) ) #NEWLINE# return ( 0 , 0 , 0 ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# x01 = int ( splitted [ 0 ] ) #NEWLINE# x05 = int ( splitted [ 1 ] ) #NEWLINE# x15 = int ( splitted [ 2 ] ) #NEWLINE# #UNINDENT# except Exception as exception : #NEWLINE# #INDENT# self . log . warning ( 'Caught exception: %s' , exception ) #NEWLINE# x01 = 0 #NEWLINE# x05 = 0 #NEWLINE# x15 = 0 #NEWLINE# #UNINDENT# return ( x01 , x05 , tripplet )