db/csv2csv.py
changeset 1478 88dae00c8954
parent 788 f75a6f866c38
child 1513 e7f7e42385b5
     1.1 --- a/db/csv2csv.py	Fri Dec 09 01:36:57 2016 +0100
     1.2 +++ b/db/csv2csv.py	Fri Dec 09 15:16:48 2016 +0100
     1.3 @@ -30,7 +30,7 @@
     1.4          if not space.match(line)
     1.5  )
     1.6  
     1.7 -_some = line for line in _all if len(line[2]) < args.length
     1.8 +_some = (line for line in _all if len(line[2]) < args.length)
     1.9  
    1.10 -for i, w in enumerate(_all):
    1.11 +for i, w in enumerate(_some):
    1.12      print("{l},{i},{w},0".format(l=w[0], i=i, w=w[2]))