def _handle_timing(self, ref, timing_info, file_bytes):
    this_info = self._get_txt_file_dict(file_bytes)
    for (stage, data) in this_info.items():
        if (stage not in timing_info.keys()):
            logger.info(('Adding timing stage: %s' % stage))
            timing_info[stage] = {}
        stage_info = timing_info[stage]
        timing_pairs = re.findall('(\\w+):\\s+([ 0-9:.\\-]+)', data)
        if (len(timing_pairs) is not 3):
            logger.warning(('Not all timings present for %s in %s.' % (stage, ref)))
        for (label, time_str) in timing_pairs:
            if (label not in stage_info.keys()):
                stage_info[label] = {}
            stage_info[label][ref] = self._parse_time(time_str)
    return
def _handle_timing(self, ref, timing_info, file_bytes):
    this_info = self._get_txt_file_dict(file_bytes)
    for (stage, data) in this_info.items():
        if (stage not in timing_info.keys()):
            logger.info(('Adding timing stage: %s' % stage))
            timing_info[stage] = {}
        stage_info = timing_info[stage]
        timing_pairs = re.findall('(\\w+):\\s+([ 0-9:.\\-]+)', data)
        if (len(timing_pairs) is not 3):
            logger.warning(('Not all timings present for %s in %s.' % (stage, ref)))
        for (label, time_str) in timing_pairs:
            if (label not in stage_info.keys()):
                stage_info[label] = {}
            stage_info[label][ref] = self._parse_time(time_str)
    return