From d44fc5cf7065168bf86b0f0834c22c09bc4cf449 Mon Sep 17 00:00:00 2001 From: mac12m99 Date: Thu, 22 Aug 2019 21:20:36 +0200 Subject: [PATCH] ops --- platformcode/updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformcode/updater.py b/platformcode/updater.py index a1564d0f..64c3fe26 100644 --- a/platformcode/updater.py +++ b/platformcode/updater.py @@ -217,7 +217,7 @@ def apply_patch(s,patch,revert=False): def getSha(fileText): - return githash.blob_hash(open(fileText, 'r'), githash.classify(fileText)[2]).hexdigest() + return hashlib.sha1("blob " + str(len(fileText)) + "\0" + fileText).hexdigest() def updateFromZip():