From: Luke Kenneth Casson Leighton Date: Sun, 1 Jul 2018 23:22:23 +0000 (+0100) Subject: pick up function keys different way X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3255ee13de5e63906f1a6951fb188dc54d739eae;p=pinmux.git pick up function keys different way --- diff --git a/src/spec/ifaceprint.py b/src/spec/ifaceprint.py index f8b95d2..d0e9e24 100644 --- a/src/spec/ifaceprint.py +++ b/src/spec/ifaceprint.py @@ -136,9 +136,9 @@ def check_functions(of, title, bankspec, fns, pins, required, eint, pwm, continue for k in pins.fnspec.keys(): if fname.startswith(k): - fk = pins.fnspec[k].keys() + fk = list(pins.fnspec[k].keys()) fn = pins.fnspec[k] - fn = fn[list(fn.keys())[0]] + fn = fn[fk[0]] #print fname, fn, dir(fn) if count == 100000: count = len(fn.pingroup)