mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
"f" should be "self"; reported by Neal Norwitz.
This commit is contained in:
parent
16623fe3e6
commit
95b0eb7cb3
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ def seek(self, offset):
|
|||
raise IOError('Negative seek in write mode')
|
||||
count = offset - self.offset
|
||||
for i in range(count/1024):
|
||||
f.write(1024*'\0')
|
||||
self.write(1024*'\0')
|
||||
self.write((count%1024)*'\0')
|
||||
elif self.mode == READ:
|
||||
if offset < self.offset:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue