From c1e3e85353a29141daeca5c81fef57e2ea36c12c Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Wed, 27 Dec 2006 16:40:16 -0500 Subject: [PATCH] [project @ robey@lag.net-20061227214016-ebfnh1q09zt8z3ej] 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. --- paramiko/sftp_file.py | 1 - 1 file changed, 1 deletion(-) diff --git a/paramiko/sftp_file.py b/paramiko/sftp_file.py index 11ca327..3cc453f 100644 --- a/paramiko/sftp_file.py +++ b/paramiko/sftp_file.py @@ -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