Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mutalyzer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
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
Mirrors
mutalyzer
Commits
8d1e898a
Commit
8d1e898a
authored
9 years ago
by
Vermaat
Browse files
Options
Downloads
Plain Diff
Merge pull request #40 from mutalyzer/xlsx
Fix XLSX parsing with newer libmagic
parents
105646b0
1f04bdf2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mutalyzer/File.py
+6
-4
6 additions, 4 deletions
mutalyzer/File.py
with
6 additions
and
4 deletions
mutalyzer/File.py
+
6
−
4
View file @
8d1e898a
...
...
@@ -448,12 +448,14 @@ class File() :
"""
mimeType
=
self
.
getMimeType
(
handle
)
if
mimeType
[
0
]
==
"
text/plain
"
:
return
self
.
__parseCsvFile
(
handle
)
if
mimeType
[
0
]
in
(
'
application/vnd.ms-excel
'
,
'
application/vnd.ms-office
'
,
'
application/msword
'
,
'
application/zip
'
):
if
(
mimeType
[
0
]
in
(
'
application/vnd.ms-excel
'
,
'
application/vnd.ms-office
'
,
'
application/msword
'
,
'
application/zip
'
)
or
mimeType
[
1
]
==
'
Microsoft OOXML
'
):
return
self
.
__parseXlsFile
(
handle
)
if
(
mimeType
[
0
]
==
'
application/vnd.oasis.opendocument.spreadsheet
'
or
mimeType
[
1
]
in
(
'
OpenDocument Spreadsheet
'
,
...
...
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