summaryrefslogtreecommitdiff
path: root/dedup/hashing.py
diff options
context:
space:
mode:
Diffstat (limited to 'dedup/hashing.py')
-rw-r--r--dedup/hashing.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/dedup/hashing.py b/dedup/hashing.py
index 2a83929..c91fb64 100644
--- a/dedup/hashing.py
+++ b/dedup/hashing.py
@@ -80,8 +80,10 @@ class HashBlacklistContent(object):
return self.hashobj.hexdigest()
def copy(self):
- return HashBlacklistContent(self.hashobj.copy(), self.blacklist,
- self.maxlen)
+ new = HashBlacklistContent(self.hashobj.copy(), self.blacklist,
+ self.maxlen)
+ new.stored = self.stored
+ return new
class DecompressedHash(object):
"""Apply a decompression function before the hash. This class provides the