From 6011c03e3abce0debb521e52eba79df91a1816d0 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 10 Jul 2018 07:51:16 +0100 Subject: [PATCH] pep8 cleanu --- src/myhdlgen/pinmux_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/myhdlgen/pinmux_generator.py b/src/myhdlgen/pinmux_generator.py index 1a5bab7..47cbf45 100644 --- a/src/myhdlgen/pinmux_generator.py +++ b/src/myhdlgen/pinmux_generator.py @@ -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): -- 2.30.2