From cd928839253853bc62d658403f43222259d37aa6 Mon Sep 17 00:00:00 2001 From: Philippe Guglielmetti Date: Wed, 19 Apr 2017 13:48:45 +0200 Subject: [PATCH] logging (stupid bug) --- pdfminer/lzw.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pdfminer/lzw.py b/pdfminer/lzw.py index 3ab8147..078ac04 100644 --- a/pdfminer/lzw.py +++ b/pdfminer/lzw.py @@ -3,6 +3,7 @@ from io import BytesIO import six #Python 2+3 compatibility +import logging class CorruptDataError(Exception): pass @@ -89,8 +90,8 @@ class LZWDecoder(object): # just ignore corrupt data and stop yielding there break yield x - #log.debug('nbits=%d, code=%d, output=%r, table=%r' % - # (self.nbits, code, x, self.table[258:])) + logging.debug('nbits=%d, code=%d, output=%r, table=%r' % + (self.nbits, code, x, self.table[258:])) return