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
Model registry
Monitor
Service Desk
Analyze
Model experiments
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
1c4e9842
Commit
1c4e9842
authored
3 years ago
by
Julien (jvoisin) Voisin
Browse files
Options
Downloads
Patches
Plain Diff
Make the linter happier
parent
fb7440ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#68878
failed
3 years ago
Stage: linting
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libmat2/archive.py
+2
-1
2 additions, 1 deletion
libmat2/archive.py
mat2
+2
-2
2 additions, 2 deletions
mat2
with
4 additions
and
3 deletions
libmat2/archive.py
+
2
−
1
View file @
1c4e9842
...
...
@@ -372,7 +372,8 @@ class ZipParser(ArchiveBasedAbstractParser):
def
is_archive_valid
(
self
):
try
:
zipfile
.
ZipFile
(
self
.
filename
)
with
zipfile
.
ZipFile
(
self
.
filename
):
pass
except
zipfile
.
BadZipFile
:
raise
ValueError
...
...
This diff is collapsed.
Click to expand it.
mat2
+
2
−
2
View file @
1c4e9842
...
...
@@ -13,8 +13,8 @@ import concurrent.futures
try
:
from
libmat2
import
parser_factory
,
UNSUPPORTED_EXTENSIONS
from
libmat2
import
check_dependencies
,
UnknownMemberPolicy
except
ValueError
as
e
:
print
(
e
)
except
ValueError
as
e
x
:
print
(
e
x
)
sys
.
exit
(
1
)
__version__
=
'
0.12.2
'
...
...
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