[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree
Eli Bendersky
report at bugs.python.org
Sat Feb 11 12:59:42 CET 2012
Eli Bendersky <eliben at gmail.com> added the comment:
Another random cleanup idea:
ElementTree.py has this code:
try:
from . import ElementPath
except ImportError:
ElementPath = _SimpleElementPath()
Since in the stdlib ElementPath.py is always there, this is meaningless, so I'd say this try... except ImportError contraption can be removed, as well as _SimpleElementPath, and just replaced by:
from . import ElementPath
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13988>
_______________________________________
More information about the Python-bugs-list
mailing list