Skip to content

Commit 7b17529

Browse files
committed
Update pyarchivefile.py
1 parent 62b598b commit 7b17529

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

pyarchivefile.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4176,6 +4176,11 @@ def ReadFileHeaderDataWithContent(fp, listonly=False, uncompress=True, skipcheck
41764176
fprejsoncontent = ""
41774177
fjsonrawcontent = fprejsoncontent
41784178
fjsoncontent = {}
4179+
elif(not testyaml and fjsontype == "yaml"):
4180+
fjsoncontent = {}
4181+
fprejsoncontent = fp.read(fjsonsize).decode("UTF-8")
4182+
fprejsoncontent = ""
4183+
fjsonrawcontent = fprejsoncontent
41794184
elif(fjsontype=="list"):
41804185
fprejsoncontent = fp.read(fjsonsize).decode("UTF-8")
41814186
flisttmp = MkTempFile()
@@ -4371,6 +4376,11 @@ def ReadFileHeaderDataWithContentToArray(fp, listonly=False, contentasfile=True,
43714376
fprejsoncontent = ""
43724377
fjsonrawcontent = fprejsoncontent
43734378
fjsoncontent = {}
4379+
elif(not testyaml and fjsontype == "yaml"):
4380+
fjsoncontent = {}
4381+
fprejsoncontent = fp.read(fjsonsize).decode("UTF-8")
4382+
fprejsoncontent = ""
4383+
fjsonrawcontent = fprejsoncontent
43744384
elif(fjsontype=="list"):
43754385
fprejsoncontent = fp.read(fjsonsize).decode("UTF-8")
43764386
flisttmp = MkTempFile()
@@ -4579,6 +4589,11 @@ def ReadFileHeaderDataWithContentToList(fp, listonly=False, contentasfile=False,
45794589
fprejsoncontent = ""
45804590
fjsonrawcontent = fprejsoncontent
45814591
fjsoncontent = {}
4592+
elif(not testyaml and fjsontype == "yaml"):
4593+
fjsoncontent = {}
4594+
fprejsoncontent = fp.read(fjsonsize).decode("UTF-8")
4595+
fprejsoncontent = ""
4596+
fjsonrawcontent = fprejsoncontent
45824597
elif(fjsontype=="list"):
45834598
fprejsoncontent = fp.read(fjsonsize).decode("UTF-8")
45844599
flisttmp = MkTempFile()

0 commit comments

Comments
 (0)