[MERGE] Make bzrlib.smart.medium use lazy imports

John Arbash Meinel john at arbash-meinel.com
Sat Jul 12 19:11:29 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is my hack-around for the problems with Crypto.Util.randpool

Basically, my making the imports in bzrlib.smart.medium be lazy, just
running the test suite doesn't have to import transport.ssh, which means
it doesn't have to create a RandomPool object.

It is a bit quick-and-dirty, but I figure it is good to have anyway, and
it makes *my* life better. (It only really effects the first test, but
if you are trying to do TDD, having 1.5s of wasted startup time is very
perceptible.)

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkh489EACgkQJdeBCYSNAANzYACgjLJOMYVTyHSy9kXVOVxDWLDq
mokAnjqbRlZ4jxBfj6pzzTOUTuLXwQL5
=E+I+
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lazy_medium.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20080712/9e17d56b/attachment-0001.diff 


More information about the bazaar mailing list