From: Guido van Rossum Date: Sun, 15 Apr 2001 12:40:13 +0000 (+0000) Subject: Fix typo in attribute name (chunk_size should be chunksize) found by X-Git-Tag: v2.1c2~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d1b7ea365c2e299a1de4df1243927ffdfcd74d7;p=thirdparty%2FPython%2Fcpython.git Fix typo in attribute name (chunk_size should be chunksize) found by Neil Norwitz's PyChecker. --- diff --git a/Lib/chunk.py b/Lib/chunk.py index 0a93cd313770..8116256c1519 100644 --- a/Lib/chunk.py +++ b/Lib/chunk.py @@ -106,7 +106,7 @@ class Chunk: 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)