# HG changeset patch # User Franz Glasner # Date 1644336592 -3600 # Node ID 6e91c530545fec4b511f21990cb86da1364bd662 # Parent e81489bbf5567e3a9e6b6ec00ca986e3021defc7 FIX: Docstring: Computes hashes are now returned as bytes from the low-level functions diff -r e81489bbf556 -r 6e91c530545f shasum.py --- 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()