as john arbash meinel points out, this assert wasn't validating internal
consistency, because a readv() request may ask for more data than is left
in the file.  so remove the assert.
This commit is contained in:
Robey Pointer 2006-12-27 16:40:16 -05:00
parent c570f1a35a
commit c1e3e85353
1 changed files with 0 additions and 1 deletions

View File

@ -464,7 +464,6 @@ class SFTPFile (BufferedFile):
raise SFTPError('Expected data')
data = msg.get_string()
offset, length = self._prefetch_reads.pop(0)
assert length == len(data)
self._prefetch_data[offset] = data
if len(self._prefetch_reads) == 0:
self._prefetch_done = True