Skip to content

Commit

Permalink
pageobjects: nit
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Apr 3, 2023
1 parent 0e5a362 commit d5bceb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pypdfium2/_helpers/pageobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ def __init__(self, raw, page=None, pdf=None, level=0):

@property
def parent(self): # AutoCloseable hook
if self.page is not None:
return self.page
else:
if self.page is None:
return self.pdf # may be none
else:
return self.page


def get_pos(self):
Expand Down

0 comments on commit d5bceb7

Please sign in to comment.