logging (stupid bug)
parent
f28ce1ebed
commit
cd92883925
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue