def flat_file_iterator(infile):

    for line in infile:

        if line.startswith("##FASTA"):
            raise StopIteration

        if line.startswith("#"):
            continue

        if len(line.strip()) == 0:
            continue

        gff_entry = Entry()
        gff_entry.read(line)
        yield gff_entry
When using a deployment shell, don't print the returned result to stdout.
dataset/ETHPy150Open CGATOxford/cgat/CGAT/GFF3.py/flat_file_iterator--crossover with--dataset/ETHPy150Open jonathanslenders/python-deployer/deployer/node/decorators.py/suppress_action_result