made calc_func_checksums a lot faster

This commit is contained in:
David Benepe
2021-06-11 09:28:17 -05:00
parent f16317428e
commit 02f2e43802
2 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ class FileUtil:
@staticmethod
def get_bytes_from_file(filename):
with open(filename, 'rb') as inFile:
return list(inFile.read())
return bytearray(inFile.read())
@staticmethod
def write_text_to_file(filename, text):
@@ -62,7 +62,7 @@ class FileUtil:
@staticmethod
def write_bytes_to_file(filename, binary):
with open(filename, 'wb') as outFile:
outFile.write(bytearray(binary))
outFile.write(binary)
@staticmethod
def delete_file(filename):