mirror of
https://github.com/python/cpython.git
synced 2025-10-12 01:43:12 +00:00
Fix typo in attribute name (chunk_size should be chunksize) found by
Neil Norwitz's PyChecker.
This commit is contained in:
parent
ab0648ffc0
commit
0d1b7ea365
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class Chunk:
|
||||||
if whence == 1:
|
if whence == 1:
|
||||||
pos = pos + self.size_read
|
pos = pos + self.size_read
|
||||||
elif whence == 2:
|
elif whence == 2:
|
||||||
pos = pos + self.chunk_size
|
pos = pos + self.chunksize
|
||||||
if pos < 0 or pos > self.chunksize:
|
if pos < 0 or pos > self.chunksize:
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
self.file.seek(self.offset + pos, 0)
|
self.file.seek(self.offset + pos, 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue