summaryrefslogtreecommitdiff
path: root/obnamlib/whole_file_checksummer.py
diff options
context:
space:
mode:
Diffstat (limited to 'obnamlib/whole_file_checksummer.py')
-rw-r--r--obnamlib/whole_file_checksummer.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/obnamlib/whole_file_checksummer.py b/obnamlib/whole_file_checksummer.py
index 517c09a1..b08655b9 100644
--- a/obnamlib/whole_file_checksummer.py
+++ b/obnamlib/whole_file_checksummer.py
@@ -35,11 +35,10 @@ class WholeFileCheckSummer(object):
'''
- def __init__(self, repo):
- self._summer = self._create_checksum_algorithm(repo)
+ def __init__(self, file_key):
+ self._summer = self._create_checksum_algorithm(file_key)
- def _create_checksum_algorithm(self, repo):
- file_key = repo.get_file_checksum_key()
+ def _create_checksum_algorithm(self, file_key):
if file_key is None:
return _NullChecksum()
name = obnamlib.get_checksum_algorithm_name(file_key)