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:
Marc Joliet 2013-11-05 16:30:51 +01:00 committed by David Adam
parent 8621399d78
commit fe3bca3a88

View File

@ -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