[chirp_devel] [PATCH 1 of 4] Make CSVRadio::match_model() more generic so it works with HMKRadio. #102

Tom Hayward
Thu Apr 5 09:17:40 PDT 2012


# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1333641862 21600
# Node ID 3f4a778cc0bbe4117ca88842a9e59c4fd237de91
# Parent  69c66e533b3ada0f8f9b7ca9336fb560fd899604
Make CSVRadio::match_model() more generic so it works with HMKRadio. #102

diff -r 69c66e533b3a -r 3f4a778cc0bb chirp/generic_csv.py
--- a/chirp/generic_csv.py	Wed Apr 04 18:30:58 2012 -0700
+++ b/chirp/generic_csv.py	Thu Apr 05 10:04:22 2012 -0600
@@ -242,4 +242,4 @@
 
     @classmethod
     def match_model(cls, filedata, filename):
-        return filename.lower().endswith(".csv")
+        return filename.lower().endswith("." + cls.FILE_EXTENSION)



More information about the chirp_devel mailing list