From 11e575a5a320965f1668e83d64ec3289f877573c Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 8 Feb 2016 23:41:45 -0800 Subject: [PATCH] leptonica: suppress debug output --- ocrmypdf/leptonica.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ocrmypdf/leptonica.py b/ocrmypdf/leptonica.py index 251e667a..82eb063d 100644 --- a/ocrmypdf/leptonica.py +++ b/ocrmypdf/leptonica.py @@ -176,7 +176,7 @@ class Pix: def _pix_destroy(pix): ptr_to_pix = ffi.new('PIX **', pix) lept.pixDestroy(ptr_to_pix) - print('pix destroy ' + repr(pix)) + # print('pix destroy ' + repr(pix)) def getLeptonicaVersion(): @@ -192,7 +192,6 @@ def getLeptonicaVersion(): def deskew(infile, outfile, dpi): try: pix_source = Pix.read(infile) - print(repr(pix_source)) except LeptonicaIOError: raise LeptonicaIOError("Failed to open file: %s" % infile) @@ -201,7 +200,6 @@ def deskew(infile, outfile, dpi): else: reduction_factor = 0 # Use default pix_deskewed = pix_source.deskew(reduction_factor) - print(repr(pix_deskewed)) try: pix_deskewed.write_implied_format(outfile)