mirror of
https://github.com/golang/go.git
synced 2025-11-06 19:51:00 +00: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
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue