Skip to content

Commit b2cbb4f

Browse files
committed
Update pyfoxfile.py
1 parent a673737 commit b2cbb4f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

pyfoxfile.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4184,6 +4184,11 @@ def ReadFileHeaderDataWithContent(fp, listonly=False, uncompress=True, skipcheck
41844184
fprejsoncontent = ""
41854185
fjsonrawcontent = fprejsoncontent
41864186
fjsoncontent = {}
4187+
elif(not testyaml and fjsontype == "yaml"):
4188+
fjsoncontent = {}
4189+
fprejsoncontent = fp.read(fjsonsize).decode("UTF-8")
4190+
fprejsoncontent = ""
4191+
fjsonrawcontent = fprejsoncontent
41874192
elif(fjsontype=="list"):
41884193
fprejsoncontent = fp.read(fjsonsize).decode("UTF-8")
41894194
flisttmp = MkTempFile()
@@ -4379,6 +4384,11 @@ def ReadFileHeaderDataWithContentToArray(fp, listonly=False, contentasfile=True,
43794384
fprejsoncontent = ""
43804385
fjsonrawcontent = fprejsoncontent
43814386
fjsoncontent = {}
4387+
elif(not testyaml and fjsontype == "yaml"):
4388+
fjsoncontent = {}
4389+
fprejsoncontent = fp.read(fjsonsize).decode("UTF-8")
4390+
fprejsoncontent = ""
4391+
fjsonrawcontent = fprejsoncontent
43824392
elif(fjsontype=="list"):
43834393
fprejsoncontent = fp.read(fjsonsize).decode("UTF-8")
43844394
flisttmp = MkTempFile()
@@ -4587,6 +4597,11 @@ def ReadFileHeaderDataWithContentToList(fp, listonly=False, contentasfile=False,
45874597
fprejsoncontent = ""
45884598
fjsonrawcontent = fprejsoncontent
45894599
fjsoncontent = {}
4600+
elif(not testyaml and fjsontype == "yaml"):
4601+
fjsoncontent = {}
4602+
fprejsoncontent = fp.read(fjsonsize).decode("UTF-8")
4603+
fprejsoncontent = ""
4604+
fjsonrawcontent = fprejsoncontent
45904605
elif(fjsontype=="list"):
45914606
fprejsoncontent = fp.read(fjsonsize).decode("UTF-8")
45924607
flisttmp = MkTempFile()

0 commit comments

Comments
 (0)