Python 3 type fixes in LZWDecode

This commit is contained in:
Matthew Stamy 2016-05-23 14:41:03 -05:00
parent 26e50775ed
commit 5bbd5aff8c
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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()))