diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index 0d97226b766..51f9b8ee083 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -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()