1
0
mirror of https://github.com/golang/go synced 2024-11-21 19:04:44 -07:00

xml.etree can also be lxml.etree (e.g. CentOS 5.4 with Python 2.4.3)

R=rsc
CC=golang-dev
https://golang.org/cl/164053
This commit is contained in:
Devon H. O'Dell 2009-12-02 01:16:38 -08:00 committed by Russ Cox
parent 8d652ee8ce
commit 742221d20b

View File

@ -43,7 +43,10 @@ import stat
import subprocess
import threading
from HTMLParser import HTMLParser
from xml.etree import ElementTree as ET
try:
from xml.etree import ElementTree as ET
except:
from lxml.etree import ElementTree as ET
try:
hgversion = util.version()