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
b1a16b33
Commit
b1a16b33
authored
2 years ago
by
Julien (jvoisin) Voisin
Browse files
Options
Downloads
Patches
Plain Diff
Get rid of a deprecated check
Nobody should be using Poppler < 0.46
parent
05013596
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#110428
failed
2 years ago
Stage: linting
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libmat2/pdf.py
+0
-6
0 additions, 6 deletions
libmat2/pdf.py
with
0 additions
and
6 deletions
libmat2/pdf.py
+
0
−
6
View file @
b1a16b33
...
@@ -8,7 +8,6 @@ import logging
...
@@ -8,7 +8,6 @@ import logging
import
tempfile
import
tempfile
import
io
import
io
from
typing
import
Union
from
typing
import
Union
from
distutils.version
import
LooseVersion
import
cairo
import
cairo
import
gi
import
gi
...
@@ -17,11 +16,6 @@ from gi.repository import Poppler, GLib
...
@@ -17,11 +16,6 @@ from gi.repository import Poppler, GLib
from
.
import
abstract
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
FIXED_PDF_VERSION
=
cairo
.
PDFVersion
.
VERSION_1_5
class
PDFParser
(
abstract
.
AbstractParser
):
class
PDFParser
(
abstract
.
AbstractParser
):
...
...
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