#NEWLINE# @ classmethod #NEWLINE# def _load_benchmark_data( cls , class_name ) : #NEWLINE# #INDENT# cfg = cls . config . cloudscaling #NEWLINE# if ( not cfg . benchmark_data ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# config = ConfigParser . ConfigParser ( ) #NEWLINE# f = open ( os . path . expanduser ( cfg . benchmark_data ) ) #NEWLINE# config . readfp ( f ) #NEWLINE# f . close ( ) #NEWLINE# items = config . items ( class_name ) #NEWLINE# result_items = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for item in items : #NEWLINE# #INDENT# boundaries = item [ 1 ] . split ( '-' ) #NEWLINE# if ( len ( boundaries ) == 2 ) : #NEWLINE# #INDENT# result_items [ item [ 0 ] ] = ( cfg [ 0 ] , boundaries [ 1 ] ) #NEWLINE# #UNINDENT# #UNINDENT# cls . benchmark_data = result_items