summaryrefslogtreecommitdiff
path: root/dedup/hashing.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2021-12-29 15:04:35 +0100
committerHelmut Grohne <helmut@subdivi.de>2021-12-29 15:04:35 +0100
commit2cb95eb8c68a692b0abb535925e8b55175285ea4 (patch)
treedab005a8ee7f5c578b98a528a8dd49befc30b932 /dedup/hashing.py
parent529f985adaabfe0c63a1e7ad8d97ec36bb881e52 (diff)
downloaddebian-dedup-2cb95eb8c68a692b0abb535925e8b55175285ea4.tar.gz
don't return the first parameter from hash_file
Returning the object gets us into trouble as to what precisely the return type is at no benefit.
Diffstat (limited to 'dedup/hashing.py')
-rw-r--r--dedup/hashing.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/dedup/hashing.py b/dedup/hashing.py
index 21f14ea..27f303c 100644
--- a/dedup/hashing.py
+++ b/dedup/hashing.py
@@ -161,7 +161,6 @@ def hash_file(hashobj, filelike, blocksize=65536):
while data:
hashobj.update(data)
data = filelike.read(blocksize)
- return hashobj
class HashedStream:
"""A file-like object, that supports sequential reading and hashes the