Skip to content

Commit

Permalink
Python 3 type fixes in LZWDecode
Browse files Browse the repository at this point in the history
  • Loading branch information
mstamy2 committed May 23, 2016
1 parent 26e5077 commit 5bbd5af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PyPDF2/filters.py
Expand Up @@ -202,7 +202,7 @@ def nextCode(self):
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
Expand Down
2 changes: 1 addition & 1 deletion PyPDF2/pdf.py
Expand Up @@ -2672,7 +2672,7 @@ def __init__(self, stream, pdf):
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()))
Expand Down

0 comments on commit 5bbd5af

Please sign in to comment.