version 1.16 sftp_file prefetch not backward compatible #676

Closed
stevevanhooser opened this Issue Feb 3, 2016 · 2 comments

Projects

None yet

2 participants

@stevevanhooser

Bug: In version 1.16 of paramiko, the function in sftp_file.py called "prefetch" now requires 2 input arguments (self and the file_size to be read in). In previous libraries it assumed that the entire file was going to be read in and the second argument was not present.

This causes older software (such as bzr) that only pass one input argument to fail.

I am working to patch the code so that if only 1 input argument is given, the code will default to the whole file, which is the legacy behavior.

@stevevanhooser stevevanhooser changed the title from version 1.16 sftp_file prefresh not backward compatible to version 1.16 sftp_file prefetch not backward compatible Feb 3, 2016
@stevevanhooser

This is now posted as pull #677

@bitprophet
Member

Rolling into the PR.

@bitprophet bitprophet closed this Apr 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment