Looking a little harder for ElementTree.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7473 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2008-07-07 20:39:37 +00:00
parent d30cad92dc
commit 746892e9d9

View File

@@ -6,7 +6,17 @@ import re
import urllib2 import urllib2
import time import time
from xml.dom.minidom import Document from xml.dom.minidom import Document
from xml.etree import ElementTree
try:
import xml.etree.ElementTree as ElementTree
except ImportError:
try:
import cElementTree as ElementTree
except ImportError:
try:
import elementtree.ElementTree as ElementTree
except ImportError:
import lxml.etree as ElementTree
missing_deps = False missing_deps = False
try: try: