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