Skip to content

Commit 5f281b8

Browse files
committed
Deprecate RecordEntry.validate
This function is no longer meant to be used, since there's a superior alternative available.
1 parent 4a05093 commit 5f281b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/installer/records.py

+4
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ def __eq__(self, other: object) -> bool:
146146
def validate(self, data: bytes) -> bool:
147147
"""Validate that ``data`` matches this instance.
148148
149+
.. attention::
150+
.. deprecated:: 0.8.0
151+
Use :py:meth:`validate_stream` instead, with ``BytesIO(data)``.
152+
149153
:param data: Contents of the file corresponding to this instance.
150154
:return: whether ``data`` matches hash and size.
151155
"""

0 commit comments

Comments
 (0)