1
0
mirror of synced 2024-11-22 01:04:23 +01:00

Get rid of a deprecated check

Nobody should be using Poppler < 0.46
This commit is contained in:
jvoisin 2022-10-09 21:10:12 +02:00
parent 0501359600
commit b1a16b334f

View File

@ -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
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):