[Yum-devel] [PATCH 1/2] Lazily load cElementTree, saves about 10% of "import yum" time.
James Antill
james at fedoraproject.org
Thu Jun 3 14:40:07 UTC 2010
On Thu, 2010-06-03 at 09:05 +0300, Ville Skyttä wrote:
> On Wednesday 02 June 2010, James Antill wrote:
>
> > +def cElementTree_xmlparse(filename):
> > + """ Lazily load/run: cElementTree.xmlparse """
>
> I suppose there's a _cElementTree_import() missing from here, I get
> "AttributeError: 'NoneType' object has no attribute 'parse'".
>
> (While at it, the docstring could be fixed to say .parse instead of
> .xmlparse.)
Thanks, fixed both things.
More information about the Yum-devel
mailing list