9 Feb
2013
9 Feb
'13
2 p.m.
On Sat, Feb 9, 2013 at 1:59 PM, Dan Smith dsmith@danplanet.com wrote:
- 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?
Yes, I had to add that bit so that File > New would start working again :-)
Tom