Skip to content

Commit 3af2644

Browse files
committed
Small update
1 parent ec3b414 commit 3af2644

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyfoxfile/pyfoxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,7 +1990,7 @@ def CheckCompressionType(infile, formatspecs=__file_format_multi_dict__, filesta
19901990
if(prefp == binascii.unhexlify("7061785f676c6f62616c")):
19911991
filetype = "tarfile"
19921992
fp.seek(curloc, 0)
1993-
if(filetype == "gzip" or filetype == "bzip2" or filetype == "lzma" or filetype == "xz" or filetype == "zstd" or filetype == "lz4" or filetype == "zlib"):
1993+
if(filetype in compressionlistalt):
19941994
if(TarFileCheck(fp)):
19951995
filetype = "tarfile"
19961996
elif(not filetype):
@@ -2031,7 +2031,7 @@ def CheckCompressionSubType(infile, formatspecs=__file_format_multi_dict__, file
20312031
compresscheck = "zlib"
20322032
else:
20332033
return False
2034-
if(compresscheck == "gzip" or compresscheck == "bzip2" or compresscheck == "lzma" or compresscheck == "xz" or compresscheck == "zstd" or compresscheck == "lz4" or compresscheck == "zlib"):
2034+
if(compresscheck in compressionlistalt):
20352035
if(TarFileCheck(infile)):
20362036
filetype = "tarfile"
20372037
elif(not compresscheck):

0 commit comments

Comments
 (0)