Skip to content

Commit

Permalink
Deprecate RecordEntry.validate
Browse files Browse the repository at this point in the history
This function is no longer meant to be used, since there's a superior
alternative available.
  • Loading branch information
pradyunsg committed May 29, 2023
1 parent 176eed0 commit b52f72f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/installer/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ def __eq__(self, other: object) -> bool:
def validate(self, data: bytes) -> bool:
"""Validate that ``data`` matches this instance.
.. attention::
.. deprecated:: 0.8.0
Use :py:meth:`validate_stream` instead, with ``BytesIO(data)``.
:param data: Contents of the file corresponding to this instance.
:return: whether ``data`` matches hash and size.
"""
Expand Down

0 comments on commit b52f72f

Please sign in to comment.