Merge pull request #971 from cgaspar/master

Update lzma import to include calibre >= 4.6.0
pull/983/head
Apprentice Harper 4 years ago committed by GitHub
commit 5d8dc595ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,7 +21,12 @@ from Crypto.Cipher import AES
from Crypto.Util.py3compat import bchr, bord
try:
# lzma library from calibre 4.6.0 or later
import calibre_lzma.lzma1 as calibre_lzma
except ImportError:
calibre_lzma = None
# lzma library from calibre 2.35.0 or later
try:
import lzma.lzma1 as calibre_lzma
except ImportError:
calibre_lzma = None

Loading…
Cancel
Save