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
Branches
Tags
No related merge requests found
......@@ -35,12 +35,12 @@ class AbstractParser(abc.ABC):
@abc.abstractmethod
def get_meta(self) -> Dict[str, Union[str, dict]]:
pass # pragma: no cover
"""Return all the metadata of the current file"""
@abc.abstractmethod
def remove_all(self) -> bool:
"""
Remove all the metadata of the current file
: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
assert Tuple # make pyflakes happy
T = TypeVar('T', bound='abstract.AbstractParser')
mimetypes.add_type('application/epub+zip', '.epub')
# EPUB Navigation Control XML File
mimetypes.add_type('application/x-dtbncx+xml', '.ncx')
mimetypes.add_type('application/x-dtbncx+xml', '.ncx') # EPUB Navigation Control XML File
def __load_all_parsers():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment