bzrlib importing too much

Robert Collins robertc at
Thu May 18 23:59:22 BST 2006

On Thu, 2006-05-18 at 16:07 -0500, John Arbash Meinel wrote:
> While playing around with the demandload code, I found that a lot of the
> bzrlib files are importing a lot of things they don't use.
> like bzrlib.branch imports lots of 'osutils' functions but only uses
> 'rmtree'.
> I think this is a leftover from when WorkingTree was part of Branch. I
> think it would be reasonable to go through and remove a lot of this
> cruft. I'm playing around with a demandload branch, available from:
> So far, there hasn't been a whole lot of performance improvement, but
> I've only updated a few files.

pyflakes will warn of unneeded imports. It gets false positives
occasionally but its generally quite good.


GPG key available at: <>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : 

More information about the bazaar mailing list