Compare byte with byte instead of int (#78)
parent
3e364354da
commit
67bf5ab124
|
@ -270,7 +270,7 @@ class PDFContentParser(PSStackParser):
|
||||||
self.charpos += 1
|
self.charpos += 1
|
||||||
if len(target) <= i and c.isspace():
|
if len(target) <= i and c.isspace():
|
||||||
i += 1
|
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
|
i += 1
|
||||||
else:
|
else:
|
||||||
i = 0
|
i = 0
|
||||||
|
|
Loading…
Reference in New Issue