mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 03:54:04 +08: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:
parent
8621399d78
commit
fe3bca3a88
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user