This commit is contained in:
marco
2020-02-10 22:48:31 +01:00
parent e50c5f0079
commit 485ce9850f
4 changed files with 4 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
import io
import os
import shutil
from lib.six import StringIO
from lib.six import BytesIO
from core import filetools
from platformcode import logger, platformtools
@@ -259,7 +259,7 @@ def getSha(path):
def getShaStr(str):
return githash.blob_hash(StringIO(str), len(str)).hexdigest()
return githash.blob_hash(BytesIO(str.encode('utf-8')), len(str)).hexdigest()
def updateFromZip(message='Installazione in corso...'):