try to import the version of elementtree that comes w/ python >= 2.5 first, before forcing a user to install the library

This commit is contained in:
Mike Dirolf 2009-02-20 09:23:56 -05:00
parent 781b956394
commit 815f77e953

View File

@ -23,7 +23,10 @@ import re
import binascii
import base64
import elementtree.ElementTree as ET
try:
import xml.etree.ElementTree as ET
except:
import elementtree.ElementTree as ET
from code import Code
from binary import Binary