view csvtotsv.py @ 68:eb91fd5d49b3

minimally changed to get Cython Queue example working, Cython version
author Henry S Thompson <ht@inf.ed.ac.uk>
date Fri, 17 Jan 2025 15:43:56 +0000
parents e07789816ca5
children
line wrap: on
line source

#!/usr/bin/python3
import csv,sys
with open(sys.argv[1],newline='') as f:
  r=csv.reader(f)
  for l in r:
    print('\t'.join(s.replace("\n","") for s in l))