Skip to content

Commit

Permalink
Update pycatfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski committed Feb 6, 2025
1 parent 059c4cf commit 2a5fe23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7311,7 +7311,7 @@ def CatFileValidate(infile, fmttype="auto", formatspecs=__file_format_multi_dict
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 @@ -7616,7 +7616,7 @@ def CatFileToArray(infile, fmttype="auto", seekstart=0, seekend=0, listonly=Fals
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 2a5fe23

Please sign in to comment.