Mercurial > hgrepos > Python > apps > py-cutils
diff shasum.py @ 56:6e91c530545f
FIX: Docstring: Computes hashes are now returned as bytes from the low-level functions
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Tue, 08 Feb 2022 17:09:52 +0100 |
| parents | 5935055edea6 |
| children | 0fa2067bedb8 |
line wrap: on
line diff
--- a/shasum.py Thu Jan 27 08:19:44 2022 +0100 +++ b/shasum.py Tue Feb 08 17:09:52 2022 +0100 @@ -456,8 +456,8 @@ """ :param hashobj: a :mod:`hashlib` compatible hash algorithm type or factory :param str filename: filename within the filesystem - :return: the digest in hex form - :rtype: str + :return: the digest in binary form + :rtype: bytes """ h = hashobj() @@ -512,8 +512,8 @@ :param hashobj: a :mod:`hashlib` compatible hash algorithm type or factory :param instream: a bytes input stream to read the data to be hashed from - :return: the digest in hex form - :rtype: str + :return: the digest in binary form + :rtype: bytes """ h = hashobj()
