From: Luke Kenneth Casson Leighton Date: Sun, 14 Nov 2021 19:10:56 +0000 (+0000) Subject: python2 print conversion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0edaf1420249b4564bae5b55222f513790cbd5f0;p=pinmux.git python2 print conversion --- 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))