

def __str__(self):
    return '\n'.join([('%s %s\n  %s' % (record.name, record.levelname, '\n'.join([line for line in record.getMessage().split('\n') if line.strip()]))) for record in self.records])

dataset/ETHPy150Open python-zk/kazoo/kazoo/tests/util.py Handler.__str__/original