Skip to content

Commit 99f334f

Browse files
author
Kazuki Suzuki Przyborowski
committed
Update pyarchivefile.py
1 parent 07ac092 commit 99f334f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyarchivefile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7300,7 +7300,7 @@ def ArchiveFileValidate(infile, fmttype="auto", formatspecs=__file_format_multi_
73007300
outfcs = inheaderdata[-2].lower()
73017301
outfccs = inheaderdata[-1].lower()
73027302
infcs = GetHeaderChecksum(
7303-
inheaderdata[:-2] + [outfprejsoncontent.encode()], inheaderdata[-4].lower(), True, formatspecs)
7303+
inheaderdata[:-2] + [outfprejsoncontent], inheaderdata[-4].lower(), True, formatspecs)
73047304
if(verbose):
73057305
VerbosePrintOut(outfname)
73067306
VerbosePrintOut("Record Number " + str(il) + "; File ID " +
@@ -7605,7 +7605,7 @@ def ArchiveFileToArray(infile, fmttype="auto", seekstart=0, seekend=0, listonly=
76057605
prefjsonsize = int(preheaderdata[27], 16)
76067606
prefjoutfprejsoncontent = fp.read(prefjsonsize).decode("UTF-8")
76077607
if(prefjsonsize <= 0):
7608-
prefjoutfprejsoncontent = "".encode()
7608+
prefjoutfprejsoncontent = ""
76097609
fp.seek(len(formatspecs['format_delimiter']), 1)
76107610
prefextrasize = int(preheaderdata[28], 16)
76117611
prefextrafields = int(preheaderdata[29], 16)

0 commit comments

Comments
 (0)