9 Feb
2013
9 Feb
'13
1:59 p.m.
- def match_model(cls, _filedata, filename):
- def match_model(cls, filedata, filename): """Match files ending in .CSV"""
return filename.lower().endswith("." + cls.FILE_EXTENSION)
return filename.lower().endswith("." + cls.FILE_EXTENSION)
and \
(filedata.startswith("Location,") or filedata == "")
Hmm, the CSV driver is willing to open empty files?
--
Dan Smith
www.danplanet.com
KK7DS