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:
parent
8d652ee8ce
commit
742221d20b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user