def _prettyformat_lines(lines):
 for line in lines:
  data = json.loads(line)
  (yield (pretty_format(data) + '\n'))

def _prettyformat_lines ( lines ) : for line in lines : data = json . loads ( line ) ( yield ( pretty_format ( data ) + '\n' ) )
pretty format lines of eliot logs .