From 8ed41dccdff9398915a12564fbf94ec0860f113d Mon Sep 17 00:00:00 2001 From: Benjamin Kiessling Date: Fri, 24 Nov 2023 13:30:55 +0100 Subject: [PATCH] s/sel.lines/self.lines Fixes #553 --- kraken/containers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kraken/containers.py b/kraken/containers.py index 36c3b6721..565e0e292 100644 --- a/kraken/containers.py +++ b/kraken/containers.py @@ -170,7 +170,7 @@ def __post_init__(self): self.lines = [] if len(self.lines) and not isinstance(self.lines[0], BBoxLine) and not isinstance(self.lines[0], BaselineLine): line_cls = BBoxLine if self.type == 'bbox' else BaselineLine - sel.lines = [line_cls(**line) for line in self.lines] + self.lines = [line_cls(**line) for line in self.lines] if len(self.regions) and not isinstance(next(iter(self.regions.values()))[0], Region): regs = {} for k, v in self.regions.items():