# HG changeset patch # User Tom Hayward tom@tomh.us # Date 1333642033 21600 # Node ID dff9491d46eba6a3e50f17c63af21f7c65b8a424 # Parent 3f4a778cc0bbe4117ca88842a9e59c4fd237de91 Make CSVRadio::__grow() accessible from inherited classes, such as HMKRadio. #102
diff -r 3f4a778cc0bb -r dff9491d46eb chirp/generic_csv.py --- a/chirp/generic_csv.py Thu Apr 05 10:04:22 2012 -0600 +++ b/chirp/generic_csv.py Thu Apr 05 10:07:13 2012 -0600 @@ -166,7 +166,7 @@ self.errors.append("Line %i: %s" % (lineno, e)) continue
- self.__grow(mem.number) + self._grow(mem.number) self.memories[mem.number] = mem good += 1
@@ -212,7 +212,7 @@ except: raise errors.InvalidMemoryLocation("No such memory %s" % number)
- def __grow(self, target): + def _grow(self, target): delta = target - len(self.memories) if delta < 0: return @@ -226,7 +226,7 @@ self.memories.append(m)
def set_memory(self, newmem): - self.__grow(newmem.number) + self._grow(newmem.number) self.memories[newmem.number] = newmem
def erase_memory(self, number):