Skip to content

Commit

Permalink
Update pyarchivefile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski committed Feb 6, 2025
1 parent 07ac092 commit 99f334f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyarchivefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7300,7 +7300,7 @@ def ArchiveFileValidate(infile, fmttype="auto", formatspecs=__file_format_multi_
outfcs = inheaderdata[-2].lower()
outfccs = inheaderdata[-1].lower()
infcs = GetHeaderChecksum(
inheaderdata[:-2] + [outfprejsoncontent.encode()], inheaderdata[-4].lower(), True, formatspecs)
inheaderdata[:-2] + [outfprejsoncontent], inheaderdata[-4].lower(), True, formatspecs)
if(verbose):
VerbosePrintOut(outfname)
VerbosePrintOut("Record Number " + str(il) + "; File ID " +
Expand Down Expand Up @@ -7605,7 +7605,7 @@ def ArchiveFileToArray(infile, fmttype="auto", seekstart=0, seekend=0, listonly=
prefjsonsize = int(preheaderdata[27], 16)
prefjoutfprejsoncontent = fp.read(prefjsonsize).decode("UTF-8")
if(prefjsonsize <= 0):
prefjoutfprejsoncontent = "".encode()
prefjoutfprejsoncontent = ""
fp.seek(len(formatspecs['format_delimiter']), 1)
prefextrasize = int(preheaderdata[28], 16)
prefextrafields = int(preheaderdata[29], 16)
Expand Down

0 comments on commit 99f334f

Please sign in to comment.