Minor code cleanup
This commit is contained in:
parent
f1a06e805b
commit
97abafdc58
@ -35,12 +35,12 @@ class AbstractParser(abc.ABC):
|
|||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
def get_meta(self) -> Dict[str, Union[str, dict]]:
|
def get_meta(self) -> Dict[str, Union[str, dict]]:
|
||||||
pass # pragma: no cover
|
"""Return all the metadata of the current file"""
|
||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
def remove_all(self) -> bool:
|
def remove_all(self) -> bool:
|
||||||
"""
|
"""
|
||||||
|
Remove all the metadata of the current file
|
||||||
|
|
||||||
:raises RuntimeError: Raised if the cleaning process went wrong.
|
:raises RuntimeError: Raised if the cleaning process went wrong.
|
||||||
"""
|
"""
|
||||||
# pylint: disable=unnecessary-pass
|
|
||||||
pass # pragma: no cover
|
|
||||||
|
@ -7,13 +7,10 @@ from typing import TypeVar, List, Tuple, Optional
|
|||||||
|
|
||||||
from . import abstract, UNSUPPORTED_EXTENSIONS
|
from . import abstract, UNSUPPORTED_EXTENSIONS
|
||||||
|
|
||||||
assert Tuple # make pyflakes happy
|
|
||||||
|
|
||||||
T = TypeVar('T', bound='abstract.AbstractParser')
|
T = TypeVar('T', bound='abstract.AbstractParser')
|
||||||
|
|
||||||
mimetypes.add_type('application/epub+zip', '.epub')
|
mimetypes.add_type('application/epub+zip', '.epub')
|
||||||
# EPUB Navigation Control XML File
|
mimetypes.add_type('application/x-dtbncx+xml', '.ncx') # EPUB Navigation Control XML File
|
||||||
mimetypes.add_type('application/x-dtbncx+xml', '.ncx')
|
|
||||||
|
|
||||||
|
|
||||||
def __load_all_parsers():
|
def __load_all_parsers():
|
||||||
|
Loading…
Reference in New Issue
Block a user