]> granicus.if.org Git - python/commitdiff
Fix typo in attribute name (chunk_size should be chunksize) found by
authorGuido van Rossum <guido@python.org>
Sun, 15 Apr 2001 12:40:13 +0000 (12:40 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 15 Apr 2001 12:40:13 +0000 (12:40 +0000)
Neil Norwitz's PyChecker.

Lib/chunk.py

index 0a93cd3137703888e23242b9e5a16225d12ff235..8116256c15199dedee8373fdb0a480dbf466b821 100644 (file)
@@ -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)