Skip to content
Snippets Groups Projects
Commit a5f7d1e0 authored by Stefano Zacchiroli's avatar Stefano Zacchiroli
Browse files

improve hash_file() docstring to specify algorithms type

parent 91d74ef0
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment