Replace abstractstaticmethod with abstractmethod
Apparently, abstractstaticmethod is deprecated since python3.3.
This commit is contained in:
parent
58773088ac
commit
4483c06f19
@ -83,22 +83,22 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser):
|
|||||||
return {} # pragma: no cover
|
return {} # pragma: no cover
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@abc.abstractstaticmethod
|
@abc.abstractmethod
|
||||||
def _get_all_members(archive: ArchiveClass) -> List[ArchiveMember]:
|
def _get_all_members(archive: ArchiveClass) -> List[ArchiveMember]:
|
||||||
"""Return all the members of the archive."""
|
"""Return all the members of the archive."""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@abc.abstractstaticmethod
|
@abc.abstractmethod
|
||||||
def _clean_member(member: ArchiveMember) -> ArchiveMember:
|
def _clean_member(member: ArchiveMember) -> ArchiveMember:
|
||||||
"""Remove all the metadata for a given member."""
|
"""Remove all the metadata for a given member."""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@abc.abstractstaticmethod
|
@abc.abstractmethod
|
||||||
def _get_member_meta(member: ArchiveMember) -> Dict[str, str]:
|
def _get_member_meta(member: ArchiveMember) -> Dict[str, str]:
|
||||||
"""Return all the metadata of a given member."""
|
"""Return all the metadata of a given member."""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@abc.abstractstaticmethod
|
@abc.abstractmethod
|
||||||
def _get_member_name(member: ArchiveMember) -> str:
|
def _get_member_name(member: ArchiveMember) -> str:
|
||||||
"""Return the name of the given member."""
|
"""Return the name of the given member."""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user