[chirp_devel] [PATCH 2 of 3] [csv] Add support for reading CSV generated by RT Systems software. #477
Dan Smith
Sat Feb 9 13:59:30 PST 2013
> - 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
Url : http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20130209/286b48bc/attachment-0001.bin
More information about the chirp_devel
mailing list