Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
jvoisin
mat2
Commits
5b10f602
Commit
5b10f602
authored
Mar 08, 2020
by
jvoisin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oops
parent
62c205ff
Pipeline
#35665
passed with stages
in 2 minutes and 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
libmat2/archive.py
libmat2/archive.py
+1
-1
libmat2/office.py
libmat2/office.py
+1
-1
No files found.
libmat2/archive.py
View file @
5b10f602
...
@@ -231,7 +231,7 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser):
...
@@ -231,7 +231,7 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser):
os
.
remove
(
self
.
output_filename
)
os
.
remove
(
self
.
output_filename
)
return
False
return
False
if
not
self
.
_final_checks
():
if
not
self
.
_final_checks
():
return
False
return
False
# pragma: no cover
return
True
return
True
...
...
libmat2/office.py
View file @
5b10f602
...
@@ -302,7 +302,7 @@ class MSOfficeParser(ZipParser):
...
@@ -302,7 +302,7 @@ class MSOfficeParser(ZipParser):
with
open
(
full_path
,
encoding
=
'utf-8'
)
as
f
:
with
open
(
full_path
,
encoding
=
'utf-8'
)
as
f
:
content
=
f
.
read
()
content
=
f
.
read
()
# relationship id
# relationship id
for
i
in
re
.
findall
(
r
'(?:\s|r:)[iIdD]="rId([0-9]+)"(?:\s|/)'
,
content
):
for
i
in
re
.
findall
(
r
'(?:\s|r:)[iI
][
dD]="rId([0-9]+)"(?:\s|/)'
,
content
):
self
.
__counters
[
'rid'
].
add
(
int
(
i
))
self
.
__counters
[
'rid'
].
add
(
int
(
i
))
# Connector non visual property
# Connector non visual property
for
i
in
re
.
findall
(
r
'<p:cNvPr id="([0-9]+)"'
,
content
):
for
i
in
re
.
findall
(
r
'<p:cNvPr id="([0-9]+)"'
,
content
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment