diff --git a/dependency/py/HashFiles.py b/dependency/py/HashFiles.py index 467230a..a8eaf27 100644 --- a/dependency/py/HashFiles.py +++ b/dependency/py/HashFiles.py @@ -16,7 +16,7 @@ def generateHashFile(): path = os.path.join(root, file) with open(path, 'rb') as f: data = f.read() - if data.find('\r\n')!=-1 : + if data.find('\r\n') != -1 : hashlist[path.replace('\\','/')]=hashlib.md5(data.replace('\n','\r\n')).hexdigest() else : hashlist[path.replace('\\','/')]=hashlib.md5(data).hexdigest()