[BzrTools][Win32] graph-ancestry needs sax.utils

Paul Moore p.f.moore at gmail.com
Wed Jan 23 22:34:00 GMT 2008


On 23/01/2008, Aaron Bentley <aaron at aaronbentley.com> wrote:
> John Arbash Meinel wrote:
> > I'm guessing it just needs to be done as:
> >
> > import xml.sax.saxutils
> >
> > I'm not sure why it would have ever done "sax.saxutils" without the "xml".
>
> The actual line in question is:
>
> from xml.sax.saxutils import escape

Ah. I wonder if I see the problem - the Windows binary installer for
bzr is built using py2exe, which only packs up modules that are
actually used by the code. So as core bzr doesn't use
xml.sax.saxutils, the bzrtools plugin doesn't work with it, as it
tries to import something which isn't included in the bzr package
(even though it is in core python).

But given that escape() isn't used anywhere in the dotgraph.py code,
why not remove the import in any case?

Paul



More information about the bazaar mailing list