[MERGE][#213425] Fix incompatibility with recent Paramiko versions

Andrew Bennetts andrew at canonical.com
Thu Apr 10 10:23:03 BST 2008


This fixes the "AttributeError: 'SSHSubprocess' object has no attribute
'get_name'" that some users have reported with current Paramiko.  A similar
problem this fixes is that paramiko expects channel.recv to return an empty
string when the connection has finished, rather than raising a socket.error.  

It also slightly improves the test coverage, by making the test code and the
real SFTP code share a little more code.  There's still some gaps in the test
coverage for this sort of problem, but this is a little better than what we had
before.

Without this fix, not only do we have bug 213425, the test suite will hang.

We definitely want this in 1.4.

-Andrew.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: paramiko-1.7.2-compat-3356.patch
Type: text/x-diff
Size: 9465 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080410/4297626b/attachment.bin 


More information about the bazaar mailing list