Merge "Use prettyxml output"

This commit is contained in:
Jenkins 2013-05-22 03:08:53 +00:00 committed by Gerrit Code Review
commit b8af830df8
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,7 @@ APIRequest class
"""
import datetime
from lxml import etree
# TODO(termie): replace minidom with etree
from xml.dom import minidom
@ -95,6 +96,9 @@ class APIRequest(object):
xml.appendChild(response_el)
response = xml.toxml()
root = etree.fromstring(response)
response = etree.tostring(root, pretty_print=True)
xml.unlink()
# Don't write private key to log