1
0
mirror of synced 2024-12-22 12:50:13 +01:00

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

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."""