[Yum-devel] [PATCH 1/2] Lazily load cElementTree, saves about 10% of "import yum" time.
Ville Skyttä
ville.skytta at iki.fi
Thu Jun 3 06:05:50 UTC 2010
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.)
> + return __cached_cElementTree.parse(filename)
More information about the Yum-devel
mailing list