Generate SHA256 hash instead of SHA1.

pull/13/head
Raphaël Vinot 2017-03-10 12:20:57 +01:00 committed by GitHub
parent dd35d23162
commit 515687b1fe
1 changed files with 2 additions and 2 deletions

View File

@ -186,8 +186,8 @@ class KittenGroomerBase(object):
self.log_debug_out = os.devnull
def _computehash(self, path):
"""Returns a sha1 hash of a file at a given path."""
s = hashlib.sha1()
"""Returns a sha256 hash of a file at a given path."""
s = hashlib.sha256()
with open(path, 'rb') as f:
while True:
buf = f.read(0x100000)