Skip to content

Commit bf14480

Browse files
committed
Small update
1 parent f5aeab0 commit bf14480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyneofile/pyneofile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,7 +1983,7 @@ def CheckCompressionType(infile, formatspecs=__file_format_multi_dict__, filesta
19831983
if(prefp == binascii.unhexlify("7061785f676c6f62616c")):
19841984
filetype = "tarfile"
19851985
fp.seek(curloc, 0)
1986-
if(filetype == "gzip" or filetype == "bzip2" or filetype == "lzma" or filetype == "xz" or filetype == "zstd" or filetype == "lz4" or filetype == "zlib"):
1986+
if(filetype in compressionlistalt):
19871987
if(TarFileCheck(fp)):
19881988
filetype = "tarfile"
19891989
elif(not filetype):
@@ -2024,7 +2024,7 @@ def CheckCompressionSubType(infile, formatspecs=__file_format_multi_dict__, file
20242024
compresscheck = "zlib"
20252025
else:
20262026
return False
2027-
if(compresscheck == "gzip" or compresscheck == "bzip2" or compresscheck == "lzma" or compresscheck == "xz" or compresscheck == "zstd" or compresscheck == "lz4" or compresscheck == "zlib"):
2027+
if(compresscheck in compressionlistalt):
20282028
if(TarFileCheck(infile)):
20292029
filetype = "tarfile"
20302030
elif(not compresscheck):

0 commit comments

Comments
 (0)