Fix assert message for PDFLayoutAnalyzer.end_page (#80)

stack is undefined
pull/98/head
Venelin Stoykov 2017-08-18 09:08:08 +03:00 committed by Goulu
parent 4c604828e8
commit c2432c32f1
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class PDFLayoutAnalyzer(PDFTextDevice):
return
def end_page(self, page):
assert not self._stack, str(len(stack))
assert not self._stack, str(len(self._stack))
assert isinstance(self.cur_item, LTPage), str(type(self.cur_item))
if self.laparams is not None:
self.cur_item.analyze(self.laparams)