Skip to content

Commit a588226

Browse files
committed
Small update
1 parent 4453c70 commit a588226

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pycatfile/pycatfile.py

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

0 commit comments

Comments
 (0)