autopep8 whitespace cleanup
[pinmux.git] / src / spec / interfaces.py
index 27b008fe33696a76f72a19af912cde9ab0dfa8eb..c354c8025cfdb86423cf2286f814983be605ec83 100644 (file)
@@ -3,6 +3,7 @@
 from spec.pinfunctions import pinspec
 from copy import deepcopy
 
+
 def namesuffix(name, suffix, namelist):
     names = []
     for n in namelist:
@@ -21,6 +22,7 @@ class PinGen(object):
         in combination with setattr (below) gives the function a name
         in the Pinouts class, according to the pinspec.
     """
+
     def __init__(self, pinouts, fname, pinfn, bankspec):
         self.pinouts = pinouts
         self.bankspec = bankspec
@@ -34,9 +36,9 @@ class PinGen(object):
             prefix, pingroup = pingroup
         else:
             prefix = self.fname
-        if start and limit: # limit turns into an offset from start
+        if start and limit:  # limit turns into an offset from start
             limit = start + limit
-        pingroup = pingroup[start:limit] # see comment in spec.pinfunctions
+        pingroup = pingroup[start:limit]  # see comment in spec.pinfunctions
         pins = Pins(prefix, pingroup, self.bankspec,
                     suffix, offs, bank, mux,
                     spec, origsuffix=suffix)
@@ -44,6 +46,7 @@ class PinGen(object):
 
 # pinouts class
 
+
 class Pinouts(object):
     def __init__(self, bankspec):
         self.bankspec = bankspec
@@ -72,7 +75,7 @@ class Pinouts(object):
             for k in v:
                 assert k not in self.pins[pinidx], \
                     "pin %d position %d already taken\n%s\n%s" % \
-                        (pinidx, k, str(v), self.pins[pinidx])
+                    (pinidx, k, str(v), self.pins[pinidx])
             self.pins[pinidx].update(v)
 
     def keys(self):
@@ -110,7 +113,7 @@ class Pinouts(object):
             specname = fname + suffix
         else:
             specname = fname
-        #print "fname bank specname suffix ", fname, bank, specname, repr(
+        # print "fname bank specname suffix ", fname, bank, specname, repr(
         #    suffix)
         if specname in self.fnspec[fname]:
             # ok so some declarations may bring in different