summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2008-04-29 12:10:03 +0000
committerFrederic Peters <fpeters@entrouvert.com>2008-04-29 12:10:03 +0000
commit3121f2a114eac96340d646bc2c5570e9fdcda5c3 (patch)
treed850098c5d273fa72f2aea871622f6c6c99be2de
parentac9af8971af59599eb62c297b8d2d392abe51bb8 (diff)
downloadlasso-3121f2a114eac96340d646bc2c5570e9fdcda5c3.tar.gz
lasso-3121f2a114eac96340d646bc2c5570e9fdcda5c3.tar.xz
lasso-3121f2a114eac96340d646bc2c5570e9fdcda5c3.zip
[project @ fpeters@0d.be-20080407154605-x6j5u3k1t53vzary]
look for alternative ElementTree implementation Original author: Frederic Peters <fpeters@0d.be> Date: 2008-04-07 17:46:05.507000+02:00
-rw-r--r--bindings/bindings.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/bindings/bindings.py b/bindings/bindings.py
index 9f26cb2b..198a5a25 100644
--- a/bindings/bindings.py
+++ b/bindings/bindings.py
@@ -28,7 +28,14 @@ import sys
import utils
from optparse import OptionParser
-import elementtree.ElementTree as ET
+
+try:
+ from lxml import etree as ET
+except ImportError:
+ try:
+ import cElementTree as ET
+ except ImportError:
+ import elementtree.ElementTree as ET
class BindingData:
src_dir = os.path.dirname(__file__)