summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-04-15 12:40:13 (GMT)
committerGuido van Rossum <guido@python.org>2001-04-15 12:40:13 (GMT)
commit0d1b7ea365c2e299a1de4df1243927ffdfcd74d7 (patch)
tree86b37a18aa93f2673567cc40078a1553604764b5
parentab0648ffc0657aa11e5a83d76cd5e538f34e0318 (diff)
downloadcpython-0d1b7ea365c2e299a1de4df1243927ffdfcd74d7.zip
cpython-0d1b7ea365c2e299a1de4df1243927ffdfcd74d7.tar.gz
cpython-0d1b7ea365c2e299a1de4df1243927ffdfcd74d7.tar.bz2
Fix typo in attribute name (chunk_size should be chunksize) found by
Neil Norwitz's PyChecker.
-rw-r--r--Lib/chunk.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/chunk.py b/Lib/chunk.py
index 0a93cd3..8116256 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)