From dbd33868c3d68b5038dd464fe8e0685a905f18f0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 16 Apr 2019 09:34:34 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/lrf/objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/lrf/objects.py b/src/calibre/ebooks/lrf/objects.py index dcec52221b..cf500b88d0 100644 --- a/src/calibre/ebooks/lrf/objects.py +++ b/src/calibre/ebooks/lrf/objects.py @@ -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)