whitespace error somehow
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 20 Jun 2020 00:02:29 +0000 (01:02 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 20 Jun 2020 00:02:29 +0000 (01:02 +0100)
nmigen_soc/wishbone/bus.py

index ad6d2d3..2d9296c 100644 (file)
@@ -256,7 +256,7 @@ class Decoder(Elaboratable):
         """
         if not isinstance(sub_bus, Interface):
             raise TypeError("Subordinate bus must be an instance of "
-                            "wishbone.Interface, not {!r}" .format(sub_bus))
+                            "wishbone.Interface, not {!r}".format(sub_bus))
         if sub_bus.granularity > self.bus.granularity:
             raise ValueError("Subordinate bus has granularity {}, "
                              "which is greater than the "
@@ -264,10 +264,10 @@ class Decoder(Elaboratable):
                              .format(sub_bus.granularity, self.bus.granularity))
         if not sparse:
             if sub_bus.data_width != self.bus.data_width:
-                raise ValueError("Subordinate bus has data width {},  "
-                             "which is not the same as "
-                                 "decoder data width {}  "
-                             "(required for dense address translation)"
+                raise ValueError("Subordinate bus has data width {}, "
+                                 "which is not the same as "
+                                 "decoder data width {} (required "
+                                 "for dense address translation)"
                                  .format(sub_bus.data_width,
                                          self.bus.data_width))
         else:
@@ -282,8 +282,8 @@ class Decoder(Elaboratable):
         for opt_output in {"err", "rty", "stall"}:
             if hasattr(sub_bus, opt_output) and not hasattr(
                     self.bus, opt_output):
-                raise ValueError("Subordinate bus has optional output "
-                                 "{!r}, but the decoder "
+                raise ValueError("Subordinate bus has optional output {!r}, "
+                                 "but the decoder "
                                  "does not have a corresponding input"
                                  .format(opt_output))