]> Cypherpunks repositories - gostls13.git/commitdiff
lxml.etree is the wrong location for this alt package
authorDevon H. O'Dell <devon.odell@gmail.com>
Wed, 2 Dec 2009 16:18:26 +0000 (08:18 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 2 Dec 2009 16:18:26 +0000 (08:18 -0800)
  on my linux machine this is the correct one. lxml.etree
  exists with an ElementTree class, but does not contain
  an .XML method.

R=rsc
https://golang.org/cl/163082

lib/codereview/codereview.py

index 51f9b8ee0834c28cfb1e4393f05481d7563282f6..41f74d2b2eb24411700d314b13286f23ce2778c6 100644 (file)
@@ -46,7 +46,7 @@ from HTMLParser import HTMLParser
 try:
        from xml.etree import ElementTree as ET
 except:
-       from lxml.etree import ElementTree as ET
+       from elementtree import ElementTree as ET
 
 try:
        hgversion = util.version()