fix: lint

This commit is contained in:
yihong0618 2023-03-17 22:37:52 +08:00
parent 4b51c59638
commit 99a3513a0a
2 changed files with 20 additions and 4 deletions

View File

@ -14,8 +14,14 @@ from tqdm import tqdm
from book_maker.utils import num_tokens_from_text, prompt_config_to_kwargs
from .base_loader import BaseBookLoader
from .helper import (EPUBBookLoaderHelper, is_text_figure, is_text_link,
is_text_list, is_text_source, is_text_tail_link)
from .helper import (
EPUBBookLoaderHelper,
is_text_figure,
is_text_link,
is_text_list,
is_text_source,
is_text_tail_link,
)
class EPUBBookLoader(BaseBookLoader):

View File

@ -199,8 +199,18 @@ class ENCRYPTIONError(Exception):
def _load_crypto_libcrypto():
from ctypes import (CDLL, POINTER, Structure, c_char_p, c_int, c_long,
c_ulong, c_void_p, cast, create_string_buffer)
from ctypes import (
CDLL,
POINTER,
Structure,
c_char_p,
c_int,
c_long,
c_ulong,
c_void_p,
cast,
create_string_buffer,
)
from ctypes.util import find_library
if sys.platform.startswith("win"):