Skip to content

Commit

Permalink
bases: add task
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Mar 23, 2023
1 parent 7019e67 commit 15c5562
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pypdfium2/_helpers/_internal/bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def _close_template(raw, uuid, parent, close_func, *args, **kwargs):
# FIXME should we add context info (explicit/automatic) ?
if DEBUG_AUTOCLOSE:
print(f"Closing {raw} with UUID {uuid}", file=sys.stderr)
# TODO add needs_parent safety check (if True, `parent` must be given)
if (parent is not None) and parent._tree_closed():
print(f"Parent closed before child - this is illegal ({parent}, {raw}).", file=sys.stderr)
close_func(raw, *args, **kwargs)
Expand Down

0 comments on commit 15c5562

Please sign in to comment.