mirror of
https://github.com/jsvine/pdfplumber.git
synced 2026-08-29 08:34:23 +08:00
Apply 'make format'
This commit is contained in:
@@ -11,8 +11,12 @@ def _repair(
|
||||
gs_path: Optional[Union[str, pathlib.Path]] = None,
|
||||
) -> BytesIO:
|
||||
|
||||
executable = (gs_path or shutil.which("gs") or shutil.which("gswin32c")
|
||||
or shutil.which("gswin64c"))
|
||||
executable = (
|
||||
gs_path
|
||||
or shutil.which("gs")
|
||||
or shutil.which("gswin32c")
|
||||
or shutil.which("gswin64c")
|
||||
)
|
||||
if executable is None: # pragma: nocover
|
||||
raise Exception(
|
||||
"Cannot find Ghostscript, which is required for repairs.\n"
|
||||
|
||||
Reference in New Issue
Block a user