diff --git a/Lib/chunk.py b/Lib/chunk.py index 0a93cd31377..8116256c151 100644 --- a/Lib/chunk.py +++ b/Lib/chunk.py @@ -106,7 +106,7 @@ def seek(self, pos, whence = 0): if whence == 1: pos = pos + self.size_read elif whence == 2: - pos = pos + self.chunk_size + pos = pos + self.chunksize if pos < 0 or pos > self.chunksize: raise RuntimeError self.file.seek(self.offset + pos, 0)