From 35891da4b34de75f1d01fcba8a5a967218027c2b Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 20 Jun 2018 17:00:10 +0100 Subject: [PATCH] remove None from format functions --- src/bsv/interface_decl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bsv/interface_decl.py b/src/bsv/interface_decl.py index 46b5bb7..22dcc2a 100644 --- a/src/bsv/interface_decl.py +++ b/src/bsv/interface_decl.py @@ -29,7 +29,7 @@ class Pin(object): self.action = action self.bitspec = bitspec if bitspec else 'Bit#(1)' - def ifacefmt(self, fmtfn=None): + def ifacefmt(self, fmtfn): res = ' ' status = [] if self.ready: @@ -56,7 +56,7 @@ class Pin(object): res += ";" return res - def ifacedef(self, fmtoutfn=None, fmtinfn=None, fmtdecfn=None): + def ifacedef(self, fmtoutfn, fmtinfn, fmtdecfn): res = ' method ' if self.action: fmtname = fmtinfn(self.name) @@ -70,7 +70,7 @@ class Pin(object): res += "%s=%s;" % (self.name, fmtname) return res - def wirefmt(self, fmtoutfn=None, fmtinfn=None, fmtdecfn=None): + def wirefmt(self, fmtoutfn, fmtinfn, fmtdecfn): res = ' Wire#(%s) ' % self.bitspec if self.action: res += '%s' % fmtinfn(self.name) -- 2.30.2