

def _output(logger, file_id, lines, prefixes):
    'Prints a sequence of lines.\n    '
    if lines:
        for line in lines:
            if (not prefixes.get(file_id, [None])[0]):
                logger.log(line)
            else:
                logger.log('%s %s', logger.style('[{}]'.format(prefixes[file_id][0]), fg=prefixes[file_id][1]), line)

dataset/ETHPy150Open shopkeep/shpkpr/shpkpr/files.py _output/original