pep8 cleanu
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 10 Jul 2018 06:51:16 +0000 (07:51 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 10 Jul 2018 06:51:16 +0000 (07:51 +0100)
src/myhdlgen/pinmux_generator.py

index 1a5bab748ce56ab930a9221041148b6c8abda8cd..47cbf45103c79c4ca0b3fc1125f8fdd94462e6e3 100644 (file)
@@ -81,6 +81,7 @@ class Interfaces(InterfacesBase):
     def __init__(self, pth=None):
         InterfacesBase.__init__(self, Interface, pth)
 
+
 def create_module(p, ifaces):
     x = """\
 from myhdl import block
@@ -95,8 +96,7 @@ def pinmux(muxfn, clk, p, ifaces, {0}):
         args.append("sel%d" % int(cell[0]))
         args.append("io%d" % int(cell[0]))
     print args
-    kl = ifaces.keys()
-    kl.sort()
+    kl = sorted(ifaces.keys())
     for k, count in ifaces.ifacecount:
         i = ifaces[k]
         for c in range(count):