#NEWLINE# def handle_data( self , data ) : #NEWLINE# #INDENT# if ( self . inside_div and ( not self . failed ) ) : #NEWLINE# #INDENT# if ( 'Problem' in data ) : #NEWLINE# #INDENT# self . failed = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . inside_span == 1 ) : #NEWLINE# #INDENT# self . benchmarks . append ( VellamoResult ( data ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( self . inside_span == 3 ) and ( not self . got_data ) ) : #NEWLINE# #INDENT# self . benchmarks [ ( - 1 ) ] . score = int ( data ) #NEWLINE# self . got_data = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . inside_li and self . got_data ) : #NEWLINE# #INDENT# if ( 'failed' not in data ) : #NEWLINE# #INDENT# self . benchmarks [ ( - 1 ) ] . add_metric ( data ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . failed = True