[patch] paramiko-1.6 compatibility fix
John Arbash Meinel
john at arbash-meinel.com
Wed May 17 17:44:50 BST 2006
Marien Zwart wrote:
> bzrlib.transport.sftp.SFTPServerWithoutSSH creates a
> paramiko.SFTPServer with a FakeChannel as channel and calls
> finish_subsystem on it. Starting with paramiko 1.6 this calls the
> superclass finish_subsystem, which calls close() on the channel.
> FakeChannel does not have a close() method, so that fails.
>
> So far the only symptom of this I have found is a lot of "Exception
> from within unit test server thread" warnings when running selftest
> (it does not actually fail any tests).
>
> The attached patch adds a noop close() method to FakeChannel, making
> the tests quiet again.
>
+1 from me. Anyone else?
John
=:->
>
>
> ------------------------------------------------------------------------
>
> === modified file 'bzrlib/transport/sftp.py'
> --- bzrlib/transport/sftp.py
> +++ bzrlib/transport/sftp.py
> @@ -1019,6 +1019,8 @@
> return '1'
> def get_hexdump(self):
> return False
> + def close(self):
> + pass
>
> server = paramiko.SFTPServer(FakeChannel(), 'sftp', StubServer(self), StubSFTPServer,
> root=self._root, home=self._server_homedir)
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060517/f7757ed8/attachment.pgp
More information about the bazaar
mailing list