diff --git a/playa/pdfdocument.py b/playa/pdfdocument.py index 71ac532e..9e0f4027 100644 --- a/playa/pdfdocument.py +++ b/playa/pdfdocument.py @@ -29,7 +29,6 @@ from playa import settings from playa.arcfour import Arcfour -from playa.cmapdb import CMap, CMapBase, CMapDB from playa.data_structures import NameTree, NumberTree from playa.exceptions import ( PDFEncryptionError, diff --git a/playa/pdfpage.py b/playa/pdfpage.py index 68d7c23d..f9b2e4e0 100644 --- a/playa/pdfpage.py +++ b/playa/pdfpage.py @@ -771,7 +771,7 @@ def get_colorspace(spec: object) -> Optional[PDFColorSpace]: self.csmap[csid] = colorspace elif k == "ProcSet": pass # called get_procset which did exactly - # nothing. perhaps we want to do something? + # nothing. perhaps we want to do something? elif k == "XObject": for xobjid, xobjstrm in dict_value(v).items(): self.xobjmap[xobjid] = xobjstrm diff --git a/tests/benchmark_convert.py b/tests/benchmark_convert.py index 9924e675..7a4471d2 100644 --- a/tests/benchmark_convert.py +++ b/tests/benchmark_convert.py @@ -60,7 +60,7 @@ def benchmark_one_pdfminer(path: Path): # Silence warnings about broken PDFs logging.basicConfig(level=logging.ERROR) niter = 10 - miner_time = beach_time = 0. + miner_time = beach_time = 0.0 for iter in range(niter + 1): for path in ALLPDFS: if len(sys.argv) == 1 or "playa" in sys.argv[1:]: