def bam_pileup_iter(bam, mask=1796, quiet=False, callback=None):
    if not quiet and bam.filename:
        eta = ETA(os.stat(bam.filename).st_size)
    else:
        eta = None

    for pileup in bam.pileup(mask=mask):
        pos = bam.tell()
        bgz_offset = pos >> 16

        if not quiet:
            if callback:
                eta.print_status(bgz_offset, extra=callback(pileup))
            else:
                eta.print_status(bgz_offset, extra=(bam.getrname(pileup.tid), pileup.pos) % '%s:%s')

        yield pileup

    if eta:
        eta.done()
dataset/ETHPy150Open ngsutils/ngsutils/ngsutils/bam/__init__.py/bam_pileup_iter/swapped operands of `%`