[patch][merge] sftp/http tweaks
Robert Collins
robertc at robertcollins.net
Thu Jan 12 01:14:53 GMT 2006
On Wed, 2006-01-11 at 07:08 -0600, John Arbash Meinel wrote:
...
> So, I'm +1 on your changes. We just need to get another.
+1 with a tweak:
+# don't use prefetch unless paramiko version >= 1.5.2 (there were bugs
earlier)
+_default_do_prefetch = False
+_paramiko_version = getattr(paramiko, '__version_info__', None)
+if (_paramiko_version is not None) and (_paramiko_version >= (1, 5,
2)):
+ _default_do_prefetch = True
to:
+# don't use prefetch unless paramiko version >= 1.5.2 (there were bugs
earlier)
+_default_do_prefetch = False
+if (getattr(paramiko, '__version_info__', (0, 0, 0) >= (1, 5, 2)):
+ _default_do_prefetch = True
I think thats a whole lot easier to read.
Cheers,
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060112/a09a4d19/attachment.pgp
More information about the bazaar
mailing list