dvc: stop using checksumdir and use our own way of checksuming a dir

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-04-10 01:56:06 +03:00
parent 6dc9fbd08e
commit 8839e72f07
7 changed files with 50 additions and 49 deletions
+6
View File
@@ -28,6 +28,12 @@ def file_md5(fname):
return (None, None)
def bytes_md5(byts):
hasher = hashlib.md5()
hasher.update(byts)
return hasher.hexdigest()
def cached_property(func):
'''A decorator for caching properties in classes.'''
def get(self):