Skip to content
Snippets Groups Projects
Commit 97abafdc authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Minor code cleanup

parent f1a06e80
No related branches found
No related tags found
No related merge requests found
...@@ -35,12 +35,12 @@ class AbstractParser(abc.ABC): ...@@ -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 ...@@ -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():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment