Skip to content

Commit

Permalink
nit: slightly improve repr style
Browse files Browse the repository at this point in the history
Apart from that, we're not sure how expensive UUIDs are, so it might not
be a good idea to do this generally.
  • Loading branch information
mara004 committed Jun 12, 2023
1 parent 12d2327 commit 9fe9660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pypdfium2/internal/bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, close_func, *args, obj=None, needs_free=True, **kwargs):


def __repr__(self):
return f"<{str(self._uuid)[:8]}:{type(self).__name__}>"
return f"<{type(self).__name__} uuid:{str(self._uuid)[:8]}>"


def _attach_finalizer(self):
Expand Down

0 comments on commit 9fe9660

Please sign in to comment.