From 2cf5448d430db8926d0af587b72d74a34fc5bd11 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Fri, 31 Aug 2007 20:13:48 -0700 Subject: [PATCH] [project @ robey@lag.net-20070901031348-6x0zif4cdtqu4vvu] jon slavin points out that using the 'cmp' keyword is not compatible with python 2.3. --- paramiko/sftp_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paramiko/sftp_file.py b/paramiko/sftp_file.py index 9be5769..cfa7db1 100644 --- a/paramiko/sftp_file.py +++ b/paramiko/sftp_file.py @@ -89,7 +89,7 @@ class SFTPFile (BufferedFile): k = [i for i in self._prefetch_reads if i[0] <= offset] if len(k) == 0: return False - k.sort(cmp=lambda x, y: cmp(x[0], y[0])) + k.sort(lambda x, y: cmp(x[0], y[0])) buf_offset, buf_size = k[-1] if buf_offset + buf_size <= offset: # prefetch request ends before this one begins