Compare byte with byte instead of int (#78)

pull/80/head
Sergei Maertens 2017-07-20 20:47:14 +02:00 committed by Goulu
parent 3e364354da
commit 67bf5ab124
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ class PDFContentParser(PSStackParser):
self.charpos += 1
if len(target) <= i and c.isspace():
i += 1
elif i < len(target) and c == target[i]:
elif i < len(target) and c == (six.int2byte(target[i]) if six.PY3 else target[i]):
i += 1
else:
i = 0