Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mat2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jvoisin
mat2
Commits
4483c06f
Commit
4483c06f
authored
5 years ago
by
Julien (jvoisin) Voisin
Browse files
Options
Downloads
Patches
Plain Diff
Replace abstractstaticmethod with abstractmethod
Apparently, abstractstaticmethod is deprecated since python3.3.
parent
58773088
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libmat2/archive.py
+4
-4
4 additions, 4 deletions
libmat2/archive.py
with
4 additions
and
4 deletions
libmat2/archive.py
+
4
−
4
View file @
4483c06f
...
...
@@ -83,22 +83,22 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser):
return
{}
# pragma: no cover
@staticmethod
@abc.abstract
static
method
@abc.abstractmethod
def
_get_all_members
(
archive
:
ArchiveClass
)
->
List
[
ArchiveMember
]:
"""
Return all the members of the archive.
"""
@staticmethod
@abc.abstract
static
method
@abc.abstractmethod
def
_clean_member
(
member
:
ArchiveMember
)
->
ArchiveMember
:
"""
Remove all the metadata for a given member.
"""
@staticmethod
@abc.abstract
static
method
@abc.abstractmethod
def
_get_member_meta
(
member
:
ArchiveMember
)
->
Dict
[
str
,
str
]:
"""
Return all the metadata of a given member.
"""
@staticmethod
@abc.abstract
static
method
@abc.abstractmethod
def
_get_member_name
(
member
:
ArchiveMember
)
->
str
:
"""
Return the name of the given member.
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment