From 587569fcb6a302af61e8cb3160c1719fb5f0a5b1 Mon Sep 17 00:00:00 2001 From: Jim Barlow Date: Fri, 24 Jul 2015 01:27:01 -0700 Subject: [PATCH] Tidy up --- src/ocrmypdf.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/ocrmypdf.py b/src/ocrmypdf.py index d04cf9bb..76fa633b 100755 --- a/src/ocrmypdf.py +++ b/src/ocrmypdf.py @@ -39,12 +39,12 @@ JHOVE_PATH = os.path.realpath(os.path.join(BASEDIR, '..', 'jhove')) JHOVE_JAR = os.path.join(JHOVE_PATH, 'bin', 'JhoveApp.jar') JHOVE_CFG = os.path.join(JHOVE_PATH, 'conf', 'jhove.conf') -EXIT_BAD_ARGS=1 -EXIT_BAD_INPUT_FILE=2 -EXIT_MISSING_DEPENDENCY=3 -EXIT_INVALID_OUTPUT_PDFA=4 -EXIT_FILE_ACCESS_ERROR=5 -EXIT_OTHER_ERROR=15 +EXIT_BAD_ARGS = 1 +EXIT_BAD_INPUT_FILE = 2 +EXIT_MISSING_DEPENDENCY = 3 +EXIT_INVALID_OUTPUT_PDFA = 4 +EXIT_FILE_ACCESS_ERROR = 5 +EXIT_OTHER_ERROR = 15 # ------------- # External dependencies @@ -203,7 +203,7 @@ def re_symlink(input_file, soft_link_name, log=_log): # Guard against soft linking to oneself if input_file == soft_link_name: log.debug("Warning: No symbolic link made. You are using " + - "the original data directory as the working directory.") + "the original data directory as the working directory.") return # Soft link already exists: delete for relink? @@ -469,7 +469,6 @@ def render_page( showBoundingboxes=False, invisibleText=True) - @transform( input=clean_pdf, filter=suffix('.cleaned.pdf'),