[PATCH] BZR_HOSTKEYS.add instead of dict method (was: Re: problems with bzr 0.10 and paramiko sftp transfer)
Alexander Belchenko
bialix at ukr.net
Fri Nov 17 10:01:38 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aaron Bentley пишет:
> Alexander Belchenko wrote:
>> (I re-send this patch because BB miss it)
>
>> Here is forgotten fix made by John Meinel in august (see history below).
>> There is also corresponding bug report: #70398.
>
>> I really don't know how to test this.
>
> + if add is not None: # paramiko >= 1.X.X
> + BZR_HOSTKEYS.add(host, keytype, server_key)
> + else:
> + BZR_HOSTKEYS.set_default(host, {})[keytype] = server_key
>
> Unfortunately, the dict method name is setdefault, not set_default, so
> this patch breaks on my machine with paramiko 1.5.2. I've submitted a
> bugfix. (without a merge request, because it's trivial).
Sorry for this. I don't check this part because old versions of paramiko
don't work properly on win32.
Alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFXYiBzYr338mxwCURAooZAJwKFsErIxM1CAZr3RXicCQT52Y4sgCeLELO
6WL55PexW0nRiOEH//cSJNI=
=4J+c
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list