grr correct syntax for assert
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 7 Feb 2020 14:46:49 +0000 (14:46 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 7 Feb 2020 14:47:09 +0000 (14:47 +0000)
src/ieee754/part_cmp/eq_gt_ge.py

index 9772522a79d48774027ddb3e28166b30206f94ec..ef4ecb5a9f7e634a18fc7e32496842809ee7142f 100644 (file)
@@ -44,8 +44,8 @@ class PartitionedEqGtGe(Elaboratable):
         self.partition_points = PartitionPoints(partition_points)
         self.mwidth = len(self.partition_points)+1
         self.output = Signal(self.mwidth, reset_less=True)
-        assert (self.partition_points.fits_in_width(width),
-                "partition_points doesn't fit in width")
+        assert self.partition_points.fits_in_width(width), \
+                "partition_points doesn't fit in width"
 
     def elaborate(self, platform):
         m = Module()