Use xml.etree.cElementTree?

Issue #32 resolved
Former user created an issue

ElementTree is imported in two locations: database/{input,output}/bibtexml.py

The following code is used:

try: import cElementTree as ET except ImportError: try: from elementtree import ElementTree as ET except ImportError: from xml.etree import ElementTree as ET

Would it make sense to import cElementTree as ET in the last ImportError section? xml.etree.cElementTree should be available for any Python version >= 2.5 hence the code shouldn't break.

Or is there a specific reason to only import ElementTree?

Thanks!

Comments (2)

  1. Log in to comment