Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jvoisin
mat2
Commits
b1a16b33
Commit
b1a16b33
authored
Oct 09, 2022
by
jvoisin
Browse files
Get rid of a deprecated check
Nobody should be using Poppler < 0.46
parent
05013596
Pipeline
#110428
failed with stages
in 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
libmat2/pdf.py
View file @
b1a16b33
...
...
@@ -8,7 +8,6 @@ import logging
import
tempfile
import
io
from
typing
import
Union
from
distutils.version
import
LooseVersion
import
cairo
import
gi
...
...
@@ -17,11 +16,6 @@ from gi.repository import Poppler, GLib
from
.
import
abstract
poppler_version
=
Poppler
.
get_version
()
if
LooseVersion
(
poppler_version
)
<
LooseVersion
(
'0.46'
):
# pragma: no cover
raise
ValueError
(
"mat2 needs at least Poppler version 0.46 to work.
\
The installed version is %s."
%
poppler_version
)
# pragma: no cover
FIXED_PDF_VERSION
=
cairo
.
PDFVersion
.
VERSION_1_5
class
PDFParser
(
abstract
.
AbstractParser
):
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment