diff --git a/swh/model/hashutil.py b/swh/model/hashutil.py index 96905d956f1dc2d2bbe0833a4a23f6009dccab06..0dfbdc34a90c9798b8ce5fdf6d36c8feec2e03d2 100644 --- a/swh/model/hashutil.py +++ b/swh/model/hashutil.py @@ -122,8 +122,9 @@ def hash_file(fobj, length=None, algorithms=DEFAULT_ALGORITHMS, chunk_cb=None): Args: fobj: a file-like object length: the length of the contents of the file-like object (for the - git-specific algorithms) - algorithms: the hashing algorithms used + git-specific algorithms) + algorithms: the hashing algorithms to be used, as an iterable over + strings Returns: a dict mapping each algorithm to a bytes digest.