From e1e03ec5cb4dafdbcf4bbdfaa47d3c53e87adb83 Mon Sep 17 00:00:00 2001 From: Daulet Zhalpakov <8470850+mrdaulet@users.noreply.github.com> Date: Fri, 26 Jan 2024 09:49:25 +0000 Subject: [PATCH] Infer .lzma files as lzma --- fsspec/compression.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fsspec/compression.py b/fsspec/compression.py index 53b7426e2..d76e76cc5 100644 --- a/fsspec/compression.py +++ b/fsspec/compression.py @@ -90,15 +90,15 @@ def isal(infile, mode="rb", **kwargs): try: from lzma import LZMAFile - register_compression("lzma", LZMAFile, "xz") - register_compression("xz", LZMAFile, "xz", force=True) + register_compression("lzma", LZMAFile, "lzma") + register_compression("xz", LZMAFile, "xz") except ImportError: pass try: import lzmaffi - register_compression("lzma", lzmaffi.LZMAFile, "xz", force=True) + register_compression("lzma", lzmaffi.LZMAFile, "lzma", force=True) register_compression("xz", lzmaffi.LZMAFile, "xz", force=True) except ImportError: pass