remove one extra newline
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 26 Jul 2018 10:58:52 +0000 (11:58 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 26 Jul 2018 10:58:52 +0000 (11:58 +0100)
src/bsv/interface_decl.py

index 86788e334fd1450687a3d4187de0daec0b897cb8..78e774cff13ab649b8828cb222da845de10c800b 100644 (file)
@@ -462,6 +462,7 @@ class InterfaceBus(InterfaceFmt):
         pins = self.get_buspins()
         plen = len(pins) / self.get_n_iopinsdiv()
 
+        res += '\n'
         template = "          interface {1}#(%s) {2};\n" % self.bitspec
         for i, n in enumerate(self.namelist):
             if not n:
@@ -483,7 +484,7 @@ class InterfaceBus(InterfaceFmt):
         bitspec = self.bitspec.format(plen)
         print self
         return '\n' + res + self.vectorifacedef2(
-            pins, plen, self.namelist, bitspec, *args) + '\n'
+            pins, plen, self.namelist, bitspec, *args)
 
     def ifacedef3pin(self, idx, pin):
         decfn = self.ifacefmtdecfn2