4 ms·
Sorry, mistake in the last snippet above, it should really be: try: import cElementTree as ElementTree except ImportError: import Eleme
by vram22 8y ago
Sorry, mistake in the last snippet above, it should really be:
try:
import cElementTree as ElementTree
except ImportError:
import ElementTree
because otherwise, you have to know which import succeeded, because that changes the name by which you reference the module and the items in it.