Refactor fitz ImportError trap

This commit is contained in:
James R. Barlow
2018-03-27 21:38:02 -07:00
parent 112e8d6c18
commit 5becfcf8ea
5 changed files with 11 additions and 19 deletions
+1 -4
View File
@@ -18,13 +18,10 @@
import pytest
import PyPDF2 as pypdf
try:
import fitz
except ImportError:
fitz = None
from ocrmypdf.pdfa import file_claims_pdfa
from ocrmypdf.exceptions import ExitCode
from ocrmypdf.lib import fitz
# pytest.helpers is dynamic
# pylint: disable=no-member