Fix #4151 (Opening ('View') an lrf book displays following trace)

This commit is contained in:
Kovid Goyal 2009-12-10 16:23:31 -07:00
parent 0eb858a30b
commit 74b8a9f54d

View File

@ -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)