We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41bf192 commit 745e857Copy full SHA for 745e857
dataintegrityfingerprint/dif.py
@@ -125,9 +125,6 @@ def count_files(self):
125
126
return len(self.get_files())
127
128
- def _sort_hash_list(self):
129
- self._hash_list = sorted(self._hash_list, key=lambda x: x[0] + x[1])
130
-
131
def generate(self, progress=None):
132
"""Generate the Data Integrity Fingerprint.
133
@@ -166,7 +163,7 @@ def generate(self, progress=None):
166
163
fl = os.path.relpath(rtn[1], self.data).replace(os.path.sep,"/")
167
164
self._hash_list.append((rtn[0], fl))
168
165
169
- self._sort_hash_list()
+ self._hash_list = sorted(self._hash_list, key=lambda x: x[0] + x[1])
170
171
def save_checksums(self, filename=None):
172
"""Save the checksums to a file.
0 commit comments