From: Luke Kenneth Casson Leighton Date: Wed, 20 Jun 2018 16:00:10 +0000 (+0100) Subject: remove None from format functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35891da4b34de75f1d01fcba8a5a967218027c2b;p=pinmux.git remove None from format functions --- 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)