Skip to content

Commit

Permalink
chore: ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Oct 28, 2024
1 parent f5bbaca commit 9ea5c08
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion playa/pdfdocument.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion playa/pdfpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/benchmark_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:]:
Expand Down

0 comments on commit 9ea5c08

Please sign in to comment.