def get_osc_stats(directory, fs, ost):
 out = []
 for fspath in os.listdir(directory):
  if ((fs in fspath) and (ost in fspath)):
   logging.debug(((((' opening file ' + str(directory)) + '/') + str(fspath)) + '/stats'))
   try:
    osc_statsfile = open(('%s/%s/stats' % (directory, fspath)))
   except IOError:
    osc_statsfile = []
   for line in osc_statsfile:
    item = re.split('\\s+', line.rstrip())
    out.append(item)
   return out

def get_osc_stats ( directory , fs , ost ) : out = [ ] for fspath in os . listdir ( directory ) : if ( ( fs in fspath ) and ( ost in fspath ) ) : logging . debug ( ( ( ( ( ' opening file ' + str ( directory ) ) + '/' ) + str ( fspath ) ) + '/stats' ) ) try : osc_statsfile = open ( ( '%s/%s/stats' % ( directory , fspath ) ) ) except IOError : osc_statsfile = [ ] for line in osc_statsfile : item = re . split ( '\\s+' , line . rstrip ( ) ) out . append ( item ) return out
read osc stats file .