def next_file(self):
        if self.index >= len(self.files):
            raise StopIteration()
        fname = self.files[self.index]
        self.parser = self.parser_class(sys.stdin if fname == '-' else open(fname, "r"))
        self.parser_iter = iter(self.parser)
        self.columns = self.parser.columns
        self.index += 1
dataset/ETHPy150Open samuel/squawk/squawk/command.py/Combiner.next_file/original