[chirp_devel] [PATCH 1 of 2] [hmk] Fix regression introduced with CSV dialog detection. #617

Tom Hayward
Tue Feb 26 11:10:54 PST 2013


# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1361904666 28800
# Node ID 1b2ec3a7cdab9efcf2a769ec3c9abb6eaaa85ff3
# Parent  eaca60f43728b33978fa03763fb7e82af786b03d
[hmk] Fix regression introduced with CSV dialog detection. #617

diff -r eaca60f43728 -r 1b2ec3a7cdab chirp/kenwood_hmk.py
--- a/chirp/kenwood_hmk.py	Mon Feb 25 14:51:54 2013 -0800
+++ b/chirp/kenwood_hmk.py	Tue Feb 26 10:51:06 2013 -0800
@@ -120,3 +120,8 @@
         if not good:
             print self.errors
             raise errors.InvalidDataError("No channels found")
+
+    @classmethod
+    def match_model(cls, filedata, filename):
+        """Match files ending in .hmk"""
+        return filename.lower().endswith("." + cls.FILE_EXTENSION)



More information about the chirp_devel mailing list