From: Guido van Rossum Date: Wed, 9 Jun 1999 13:41:18 +0000 (+0000) Subject: Oops, Sjoerd was in a hurry. This patch from him fixes some length X-Git-Tag: v1.6a1~1268 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56b20595e6eba948ff86db24c2ce55bae70aa659;p=thirdparty%2FPython%2Fcpython.git Oops, Sjoerd was in a hurry. This patch from him fixes some length math in the Chunk class. --- diff --git a/Lib/chunk.py b/Lib/chunk.py index 0a9abd255a63..320339ef7419 100644 --- a/Lib/chunk.py +++ b/Lib/chunk.py @@ -61,6 +61,7 @@ class Chunk: self.chunksize = struct.unpack('>l', file.read(4))[0] except struct.error: raise EOFError + self.chunksize = self.chunksize - 8 # subtract header self.size_read = 0 self.offset = self.file.tell()