(infile, outfile)
| 89 | f.close() |
| 90 | |
| 91 | def process_trans(infile, outfile): |
| 92 | trans = {} |
| 93 | with open(infile, "r") as f: |
| 94 | for line in f: |
| 95 | sec = line.strip().split("\t") |
| 96 | if len(sec) == 2: |
| 97 | trans[sec[0]] = sec[1] |
| 98 | else: |
| 99 | print(line) |
| 100 | f.close() |
| 101 | with open(outfile, 'w') as f: |
| 102 | for k, v in trans.items(): |
| 103 | f.write("%s\t%s\n" %(k, rich_captions(v))) |
| 104 | f.close() |
nothing calls this directly
no test coverage detected