5 lines = list(open('delays.data'))
9 line = line.strip().split('\t')
19 for c in sorted(classes):
22 cmd += ' "delays-1.data" using ($4 == %d ? $2 : 1.0/0.0):1 title "%s"' % (n, c or 'NORMAL')
28 fp = open('delays-1.data', 'w')
30 line = line.strip().split('\t')
31 while len(line) < 4: line.append("")
32 line[3] = str(replace[line[3]])
33 fp.write('\t'.join(line) + '\n')