[chirp_devel] [PATCH 34/35] Fix style issues in icx8x.py (#2355)

Zachary T Welch
Tue Mar 3 17:48:46 PST 2015


# HG changeset patch
# User Zachary T Welch <zach at mandolincreekfarm.com>
# Fake Node ID 92fe9e79fb4736e6f0633b78b06d56578da686c2

Fix style issues in icx8x.py (#2355)


diff --git a/chirp/drivers/icx8x.py b/chirp/drivers/icx8x.py
index 776bd74..bf17f1a 100644
--- a/chirp/drivers/icx8x.py
+++ b/chirp/drivers/icx8x.py
@@ -16,6 +16,7 @@
 from chirp.drivers import icf, icx8x_ll
 from chirp import chirp_common, errors, directory
 
+
 def _isuhf(pipe):
     try:
         md = icf.get_model_data(pipe)
@@ -28,6 +29,7 @@ def _isuhf(pipe):
 
     return uhf
 
+
 @directory.register
 class ICx8xRadio(icf.IcomCloneModeRadio, chirp_common.IcomDstarSupport):
     """Icom IC-V/U82"""
@@ -100,7 +102,7 @@ class ICx8xRadio(icf.IcomCloneModeRadio, chirp_common.IcomDstarSupport):
         # that flag.
         if isinstance(pipe, str):
             self._isuhf = (ord(self._mmap[0x1930]) != 0)
-            #print "Found %s image" % (self.isUHF and "UHF" or "VHF")
+            # print "Found %s image" % (self.isUHF and "UHF" or "VHF")
         else:
             self._isuhf = None
 
@@ -126,8 +128,8 @@ class ICx8xRadio(icf.IcomCloneModeRadio, chirp_common.IcomDstarSupport):
             try:
                 number = icx8x_ll.ICx8x_SPECIAL[number]
             except KeyError:
-                raise errors.InvalidMemoryLocation("Unknown channel %s" % \
-                                                       number)
+                raise errors.InvalidMemoryLocation("Unknown channel %s" %
+                                                   number)
 
         return icx8x_ll.get_memory(self._mmap, number, base)
 
diff --git a/tools/cpep8.blacklist b/tools/cpep8.blacklist
index d4143c2..5ced208 100644
--- a/tools/cpep8.blacklist
+++ b/tools/cpep8.blacklist
@@ -1,5 +1,4 @@
 # 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/icx8x.py
 ./chirp/drivers/icx8x_ll.py




More information about the chirp_devel mailing list