self.debug_info = debug_info
return self
- def __pick_layout(self) -> int:
+ def __pick_layout(self) -> None:
if len(self.items) == 1:
self.layout = page_builder.LAYOUT_ONE_ITEM
elif len(self.items) <= 4:
else:
print("Error, unknown layout type: %d" % self.layout)
+ return
count = 0
self.items.sort(key=len, reverse=True)