From 2cb95eb8c68a692b0abb535925e8b55175285ea4 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Wed, 29 Dec 2021 15:04:35 +0100 Subject: 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. --- dedup/hashing.py | 1 - 1 file changed, 1 deletion(-) (limited to 'dedup/hashing.py') 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 -- cgit v1.2.3