refactor with PEP8

This commit is contained in:
Kiryl
2022-06-28 16:39:50 +03:00
parent f01f6ad778
commit 114ac78eb0
2 changed files with 144 additions and 30 deletions

View File

@@ -497,7 +497,7 @@ class EpubConverter:
id wraps chapter"s content + subchapters" content
id points to the start of title of a chapter
In all cases we know where chapter starts. Therefore, chapter is all tags between chapter"s id
In all cases we know where chapter starts. Therefore, chapter is all tags between chapter's id
and id of the next chapter/subchapter
Parameters
----------
@@ -539,6 +539,7 @@ class EpubConverter:
lvl: int
level of chapter
Returns
-------
ChapterItem
@@ -597,7 +598,7 @@ class EpubConverter:
if __name__ == "__main__":
epub_file_path = "../../epub/9781614382264.epub"
epub_file_path = "../../epub/9781641050234.epub"
logger_object = BookLogger(
name="epub", book_id=epub_file_path.split("/")[-1])