Python 3 type fixes in LZWDecode
This commit is contained in:
parent
26e50775ed
commit
5bbd5aff8c
|
@ -202,7 +202,7 @@ class LZWDecode(object):
|
|||
while fillbits>0 :
|
||||
if self.bytepos >= len(self.data):
|
||||
return -1
|
||||
nextbits=ord(self.data[self.bytepos])
|
||||
nextbits=ord_(self.data[self.bytepos])
|
||||
bitsfromhere=8-self.bitpos
|
||||
if bitsfromhere>fillbits:
|
||||
bitsfromhere=fillbits
|
||||
|
|
|
@ -2672,7 +2672,7 @@ class ContentStream(DecodedStreamObject):
|
|||
if isinstance(stream, ArrayObject):
|
||||
data = b_("")
|
||||
for s in stream:
|
||||
data += s.getObject().getData()
|
||||
data += b_(s.getObject().getData())
|
||||
stream = BytesIO(b_(data))
|
||||
else:
|
||||
stream = BytesIO(b_(stream.getData()))
|
||||
|
|
Loading…
Reference in New Issue