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 b43ed95
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/installer/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ def __eq__(self, other: object) -> bool:
)

def validate(self, data: bytes) -> bool:
"""Validate that ``data`` matches this instance.
"""
.. deprecated:: 0.8.0
Use :py:meth:`validate_stream` instead, with ``BytesIO(data)``.
Validate that ``data`` matches this instance.
:param data: Contents of the file corresponding to this instance.
:return: whether ``data`` matches hash and size.
Expand Down

0 comments on commit b43ed95

Please sign in to comment.