Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
jvoisin
mat2
Commits
7ff89fdf
Commit
7ff89fdf
authored
Feb 08, 2020
by
jvoisin
Browse files
Please the linter
parent
3323c1db
Pipeline
#34335
failed with stages
in 10 minutes and 29 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libmat2/pdf.py
libmat2/pdf.py
+2
-2
No files found.
libmat2/pdf.py
View file @
7ff89fdf
...
...
@@ -128,7 +128,7 @@ class PDFParser(abstract.AbstractParser):
# It should(tm) be alright though, because cairo's output format
# for metadata is fixed.
with
open
(
out_file
,
'rb'
)
as
f
:
out
=
re
.
sub
(
b
'<<[\s
\n
]*/Producer.*?>>'
,
b
' << >>'
,
f
.
read
(),
0
,
out
=
re
.
sub
(
r
b
'<<[\s\n]*/Producer.*?>>'
,
b
' << >>'
,
f
.
read
(),
0
,
re
.
DOTALL
|
re
.
IGNORECASE
)
with
open
(
out_file
,
'wb'
)
as
f
:
f
.
write
(
out
)
...
...
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