From 0edaf1420249b4564bae5b55222f513790cbd5f0 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 14 Nov 2021 19:10:56 +0000 Subject: [PATCH] python2 print conversion --- src/bsv/pinmux_generator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bsv/pinmux_generator.py b/src/bsv/pinmux_generator.py index a20fc7d..745c7eb 100644 --- a/src/bsv/pinmux_generator.py +++ b/src/bsv/pinmux_generator.py @@ -400,10 +400,10 @@ def write_bvp(bvp, p, ifaces): decl.append(muxdec .format(npins, bank)) idec.append(gpioifc.format(bank)) idec.append(muxifc.format(bank)) - print dir(ifaces) - print ifaces.items() - print dir(ifaces['gpioa']) - print ifaces['gpioa'].pinspecs + print (dir(ifaces)) + print (ifaces.items()) + print (dir(ifaces['gpioa'])) + print (ifaces['gpioa'].pinspecs) gpiodecl = '\n'.join(decl) + '\n' + '\n'.join(idec) gpiocfg = '\n'.join(cfg) bsv_file.write(axi4_lite.format(gpiodecl, gpiocfg)) -- 2.30.2