mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-02 09:30:24 +00:00
fix: lint
This commit is contained in:
parent
4b51c59638
commit
99a3513a0a
@ -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):
|
||||
|
@ -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"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user