summaryrefslogtreecommitdiff
path: root/paramiko/sftp_file.py
diff options
context:
space:
mode:
authorTorkil Gustavsen <torkil@gmail.com>2015-07-23 14:29:03 +0200
committerTorkil Gustavsen <torkil@gmail.com>2015-07-23 14:29:03 +0200
commit49072f3537a8981e9d448c22481a1d2b92c03643 (patch)
tree2cc0ff69d2a1ba409e3406951ce1489040690d96 /paramiko/sftp_file.py
parenta671dafb8775e585086600a1fddd364def5aeb20 (diff)
downloadparamiko-49072f3537a8981e9d448c22481a1d2b92c03643.tar.gz
prefetch's file_size param is not optional
Diffstat (limited to 'paramiko/sftp_file.py')
-rw-r--r--paramiko/sftp_file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/sftp_file.py b/paramiko/sftp_file.py
index 8f73dcbf..c5b65488 100644
--- a/paramiko/sftp_file.py
+++ b/paramiko/sftp_file.py
@@ -379,7 +379,7 @@ class SFTPFile (BufferedFile):
"""
self.pipelined = pipelined
- def prefetch(self, file_size=None):
+ def prefetch(self, file_size):
"""
Pre-fetch the remaining contents of this file in anticipation of future
`.read` calls. If reading the entire file, pre-fetching can