mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a regression in 4d547f40e7
Without the bytearray() c will not be an integer on python2
This commit is contained in:
parent
3cba654949
commit
a2c4d44688
@ -237,7 +237,7 @@ class APNXBuilder(object):
|
|||||||
# not modifying the text. In this case the case
|
# not modifying the text. In this case the case
|
||||||
# doesn't matter just the absolute character and
|
# doesn't matter just the absolute character and
|
||||||
# the position within the stream.
|
# the position within the stream.
|
||||||
data = mr.mobi_html.lower()
|
data = bytearray(as_bytes(mr.mobi_html.lower()))
|
||||||
slash, p, lt, gt = map(ord, '/p<>')
|
slash, p, lt, gt = map(ord, '/p<>')
|
||||||
for c in data:
|
for c in data:
|
||||||
pos += 1
|
pos += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user