1
0
mirror of synced 2024-11-25 02:34:24 +01:00

Minor code cleanup

This commit is contained in:
jvoisin 2019-05-09 09:41:05 +02:00
parent f1a06e805b
commit 97abafdc58
2 changed files with 4 additions and 7 deletions

View File

@ -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

View File

@ -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():