mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 05:41:16 -03:00
Prefer standard library lzma module if available
Prefer the standard library lzma module if available. This change prevents using the backports-lzma when it is installed for a version of Python that already has the lzma module in its standard library.
This commit is contained in:
@@ -23,9 +23,9 @@ from deroff import Deroffer
|
||||
lzma_available = True
|
||||
try:
|
||||
try:
|
||||
import backports.lzma as lzma
|
||||
except ImportError:
|
||||
import lzma
|
||||
except ImportError:
|
||||
from backports import lzma
|
||||
except ImportError:
|
||||
lzma_available = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user