16470: Fixes reload() API to match the overridden function.
[arvados.git] / doc / user / cwl / federated / merge.py
1 import sys
2 import csv
3
4 merged = open("merged.csv", "wt")
5
6 wroteheader = False
7 for s in sys.argv[1:]:
8     f = open(s, "rt")
9     header = next(f)
10     if not wroteheader:
11         merged.write(header)
12         wroteheader = True
13     for l in f:
14         merged.write(l)
15     f.close()