1
0
Fork 0

Replace abstractstaticmethod with abstractmethod

Apparently, abstractstaticmethod is deprecated
since python3.3.
This commit is contained in:
jvoisin 2019-10-12 21:28:27 +02:00
parent 58773088ac
commit 4483c06f19
1 changed files with 4 additions and 4 deletions

View File

@ -83,22 +83,22 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser):
return {} # pragma: no cover
@staticmethod
@abc.abstractstaticmethod
@abc.abstractmethod
def _get_all_members(archive: ArchiveClass) -> List[ArchiveMember]:
"""Return all the members of the archive."""
@staticmethod
@abc.abstractstaticmethod
@abc.abstractmethod
def _clean_member(member: ArchiveMember) -> ArchiveMember:
"""Remove all the metadata for a given member."""
@staticmethod
@abc.abstractstaticmethod
@abc.abstractmethod
def _get_member_meta(member: ArchiveMember) -> Dict[str, str]:
"""Return all the metadata of a given member."""
@staticmethod
@abc.abstractstaticmethod
@abc.abstractmethod
def _get_member_name(member: ArchiveMember) -> str:
"""Return the name of the given member."""