From 3255ee13de5e63906f1a6951fb188dc54d739eae Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 2 Jul 2018 00:22:23 +0100 Subject: [PATCH] pick up function keys different way --- src/spec/ifaceprint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2