@@ -148,7 +148,6 @@ def unpack(self, dest=None, **kwargs):
148148
149149
150150class _Tar (_Archive , ArComp ):
151-
152151 exts = frozenset ([".tar" ])
153152 binary = (
154153 "gtar" ,
@@ -179,87 +178,74 @@ def _unpack_cmd(self):
179178
180179
181180class _TarGZ (_Tar ):
182-
183181 exts = frozenset ([".tar.gz" , ".tgz" , ".tar.Z" , ".tar.z" ])
184182 compress_binary = (("pigz" ,), ("gzip" ,))
185183
186184
187185class _TarBZ2 (_Tar ):
188-
189186 exts = frozenset ([".tar.bz2" , ".tbz2" , ".tbz" ])
190187 compress_binary = (("lbzip2" ,), ("pbzip2" ,), ("bzip2" ,))
191188
192189
193190class _TarLZMA (_Tar ):
194-
195191 exts = frozenset ([".tar.lzma" ])
196192 compress_binary = ("lzma" ,)
197193
198194
199195class _TarXZ (_Tar ):
200-
201196 exts = frozenset ([".tar.xz" , ".txz" ])
202197 compress_binary = (("pixz" ,), ("xz" , f"-T{ multiprocessing .cpu_count ()} " ))
203198
204199
205200class _Zip (_Archive , ArComp ):
206-
207201 exts = frozenset ([".ZIP" , ".zip" , ".jar" ])
208202 binary = ("unzip" ,)
209203 default_unpack_cmd = '{binary} -qo "{path}"'
210204
211205
212206class _GZ (_CompressedStdin , ArComp ):
213-
214207 exts = frozenset ([".gz" , ".Z" , ".z" ])
215208 binary = ("pigz" , "gzip" )
216209 default_unpack_cmd = "{binary} -d -c"
217210
218211
219212class _BZ2 (_CompressedStdin , ArComp ):
220-
221213 exts = frozenset ([".bz2" , ".bz" ])
222214 binary = ("lbzip2" , "pbzip2" , "bzip2" )
223215 default_unpack_cmd = "{binary} -d -c"
224216
225217
226218class _XZ (_CompressedStdin , ArComp ):
227-
228219 exts = frozenset ([".xz" ])
229220 binary = ("pixz" , "xz" )
230221 default_unpack_cmd = "{binary} -d -c"
231222
232223
233224class _7Z (_Archive , ArComp ):
234-
235225 exts = frozenset ([".7Z" , ".7z" ])
236226 binary = ("7z" ,)
237227 default_unpack_cmd = '{binary} x -y "{path}"'
238228
239229
240230class _Rar (_Archive , ArComp ):
241-
242231 exts = frozenset ([".RAR" , ".rar" ])
243232 binary = ("unrar" ,)
244233 default_unpack_cmd = '{binary} x -idq -o+ "{path}"'
245234
246235
247236class _LHA (_Archive , ArComp ):
248-
249237 exts = frozenset ([".LHa" , ".LHA" , ".lha" , ".lzh" ])
250238 binary = ("lha" ,)
251239 default_unpack_cmd = '{binary} xfq "{path}"'
252240
253241
254242class _Ar (_Archive , ArComp ):
255-
256243 exts = frozenset ([".a" , ".deb" ])
257244 binary = ("ar" ,)
258245 default_unpack_cmd = '{binary} x "{path}"'
259246
260247
261248class _LZMA (_CompressedFile , ArComp ):
262-
263249 exts = frozenset ([".lzma" ])
264250 binary = ("lzma" ,)
265251 default_unpack_cmd = '{binary} -dc "{path}"'
0 commit comments