Skip to content

Commit

Permalink
Undo is_null_or_none
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Sep 15, 2024
1 parent bc3ae82 commit 7a4409f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypdf/_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def _get_page_number_by_indirect(
self._page_id2num = {
x.indirect_reference.idnum: i # type: ignore
for i, x in enumerate(self.pages)
if is_null_or_none(x.indirect_reference)
if x.indirect_reference is None
}

if is_null_or_none(indirect_reference):
Expand Down

0 comments on commit 7a4409f

Please sign in to comment.