logging (stupid bug)

pull/58/head
Philippe Guglielmetti 2017-04-19 13:48:45 +02:00
parent f28ce1ebed
commit cd92883925
1 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@ from io import BytesIO
import six #Python 2+3 compatibility import six #Python 2+3 compatibility
import logging
class CorruptDataError(Exception): class CorruptDataError(Exception):
pass pass
@ -89,8 +90,8 @@ class LZWDecoder(object):
# just ignore corrupt data and stop yielding there # just ignore corrupt data and stop yielding there
break break
yield x yield x
#log.debug('nbits=%d, code=%d, output=%r, table=%r' % logging.debug('nbits=%d, code=%d, output=%r, table=%r' %
# (self.nbits, code, x, self.table[258:])) (self.nbits, code, x, self.table[258:]))
return return