diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2008-04-29 12:10:03 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2008-04-29 12:10:03 +0000 |
| commit | 3121f2a114eac96340d646bc2c5570e9fdcda5c3 (patch) | |
| tree | d850098c5d273fa72f2aea871622f6c6c99be2de | |
| parent | ac9af8971af59599eb62c297b8d2d392abe51bb8 (diff) | |
| download | lasso-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.py | 9 |
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__) |
