mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
4e2556ee63
commit
dbd33868c3
@ -792,7 +792,7 @@ class Text(LRFStream):
|
||||
oldpos = stream.tell()
|
||||
try:
|
||||
t = Tag(stream)
|
||||
if t.id not in [0xF579, 0xF57A]:
|
||||
if t.id not in (0xF579, 0xF57A):
|
||||
raise LRFParseError
|
||||
except LRFParseError:
|
||||
invalid(oldpos)
|
||||
@ -803,7 +803,7 @@ class Text(LRFStream):
|
||||
oldpos = stream.tell()
|
||||
try:
|
||||
t = Tag(stream)
|
||||
if t.id not in [0xF579, 0xF57A]:
|
||||
if t.id not in (0xF579, 0xF57A):
|
||||
raise LRFParseError
|
||||
h = TextAttr.tag_map[t.id]
|
||||
attrs[h[0]] = TextAttr.tag_to_val(h, None, t, None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user