[chirp_devel] [PATCH 31/35] Fix style issues in ict70.py (#2355)
Zachary T Welch
Tue Mar 3 17:48:43 PST 2015
# HG changeset patch
# User Zachary T Welch <zach at mandolincreekfarm.com>
# Fake Node ID 6a7c733ac5c64830044316e62b7a52c05e757255
Fix style issues in ict70.py (#2355)
diff --git a/chirp/drivers/ict70.py b/chirp/drivers/ict70.py
index eb81d7e..4066c69 100644
--- a/chirp/drivers/ict70.py
+++ b/chirp/drivers/ict70.py
@@ -69,6 +69,7 @@ POWER_LEVELS = [chirp_common.PowerLevel("High", watts=5),
chirp_common.PowerLevel("Mid", watts=1.0),
]
+
class ICT70Bank(icf.IcomBank):
"""ICT70 bank"""
def get_name(self):
@@ -79,6 +80,7 @@ class ICT70Bank(icf.IcomBank):
_bank = self._model._radio._memobj.bank_names[self.index]
_bank.name = name.ljust(6)[:6]
+
@directory.register
class ICT70Radio(icf.IcomCloneModeRadio):
"""Icom IC-T70"""
@@ -93,7 +95,7 @@ class ICT70Radio(icf.IcomCloneModeRadio):
_num_banks = 26
_bank_class = ICT70Bank
-
+
def _get_bank(self, loc):
_bank = self._memobj.banks[loc]
if _bank.bank != 0xFF:
@@ -115,7 +117,7 @@ class ICT70Radio(icf.IcomCloneModeRadio):
def _set_bank_index(self, loc, index):
_bank = self._memobj.banks[loc]
_bank.index = index
-
+
def get_features(self):
rf = chirp_common.RadioFeatures()
rf.memory_bounds = (0, 299)
@@ -171,7 +173,7 @@ class ICT70Radio(icf.IcomCloneModeRadio):
mem.dtcs_polarity = DTCS_POLARITY[_mem.dtcs_polarity]
mem.tmode = TMODES[_mem.tmode]
mem.skip = (_psk & bit and "P") or (_skp & bit and "S") or ""
-
+
return mem
def set_memory(self, mem):
@@ -219,4 +221,3 @@ class ICT70Radio(icf.IcomCloneModeRadio):
else:
_skp &= ~bit
_psk &= ~bit
-
diff --git a/tools/cpep8.blacklist b/tools/cpep8.blacklist
index e412e4b..9e6f852 100644
--- a/tools/cpep8.blacklist
+++ b/tools/cpep8.blacklist
@@ -1,7 +1,6 @@
# cpep8.blacklist: The list of files that do not meet PEP8 standards.
# DO NOT ADD NEW FILES!! Instead, fix the code to be compliant.
# Over time, this list should shrink and (eventually) be eliminated.
-./chirp/drivers/ict70.py
./chirp/drivers/ict8.py
./chirp/drivers/icw32.py
./chirp/drivers/icx8x.py
More information about the chirp_devel
mailing list