#NEWLINE# def get_stats( path , build_slug ) : #NEWLINE# #INDENT# perfpath = os . path . join ( path , '{}-performance.txt' . format ( build_slug ) ) #NEWLINE# with open ( perfpath , 'r' ) as f : #NEWLINE# #INDENT# lines = f . read ( ) . splitlines ( ) #NEWLINE# stats = [ line . split ( ',' ) for line in lines ] #NEWLINE# return { line [ 0 ] : { #NEWLINE# #INDENT# 'mem' : int ( line [ 1 ] ) , #NEWLINE# 'time' : float ( line [ 2 ] ) , #NEWLINE# #UNINDENT# } for line in stats }