Fix more Py2/Py3 stuff

This commit is contained in:
NoDRM
2023-08-06 15:49:52 +02:00
parent 10b6caf9f5
commit ef67dbd204
12 changed files with 40 additions and 8 deletions

View File

@@ -30,6 +30,9 @@ import struct
from io import BytesIO
#@@CALIBRE_COMPAT_CODE@@
try:
from Cryptodome.Cipher import AES
from Cryptodome.Util.py3compat import bchr
@@ -57,7 +60,7 @@ except ImportError:
# Windows-friendly choice: pylzma wheels
import pylzma as lzma
from kfxtables import *
from .kfxtables import *
TID_NULL = 0
TID_BOOLEAN = 1