From 74b8a9f54d8c0e06232faa60d5bf1a805886011e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 10 Dec 2009 16:23:31 -0700 Subject: [PATCH] Fix #4151 (Opening ('View') an lrf book displays following trace) --- src/calibre/ebooks/lrf/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/lrf/objects.py b/src/calibre/ebooks/lrf/objects.py index 93be0f3143..a46417aa1a 100644 --- a/src/calibre/ebooks/lrf/objects.py +++ b/src/calibre/ebooks/lrf/objects.py @@ -177,7 +177,7 @@ class LRFStream(LRFObject): if len(self.stream) != decomp_size: raise LRFParseError("Stream decompressed size is wrong!") if stream.read(2) != '\x06\xF5': - print "Warning: corrupted end-of-stream tag at %08X; skipping it"%stream.tell()-2 + print "Warning: corrupted end-of-stream tag at %08X; skipping it"%(stream.tell()-2) self.end_stream(None, None)