rgrp/csv2sqlite — pull request #6 by kjhowe (2014-06-09 15:19:48+00:00)
Title: Defining the count variable in order to eliminate the following warning ...

...generated when guessing types:

Traceback (most recent call last):
File "/Users/khowe/bin/csv2sqlite.py", line 113, in
convert(*sys.argv[1:])
File "/Users/khowe/bin/csv2sqlite.py", line 17, in convert
types = _guess_types(fo)
File "/Users/khowe/bin/csv2sqlite.py", line 98, in _guess_types
if colresult[_type] == count + 1:
UnboundLocalError: local variable 'count' referenced before assignment