[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xend: Replace the use of XMLPrettyPrint from PyXML with stdlib functionality.
# HG changeset patch # User M A Young <m.a.young@xxxxxxxxxxxx> # Date 1345209026 -3600 # Node ID 71a6727651110ac53b8ffe17a9a799d73a511131 # Parent c433e7e7d5fe422bd8cb96383a62577c28dc7160 xend: Replace the use of XMLPrettyPrint from PyXML with stdlib functionality. This appears to have been missed by changeset 22235:b8cc53d22545 "Replace pyxml/xmlproc-based XML validator with lxml based one" This was reported by Toshio Ernie Kuratomi at https://bugzilla.redhat.com/show_bug.cgi?id=842843 Signed-off-by: Michael Young <m.a.young@xxxxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- diff -r c433e7e7d5fe -r 71a672765111 tools/python/xen/xm/create.py --- a/tools/python/xen/xm/create.py Fri Aug 17 12:36:38 2012 +0200 +++ b/tools/python/xen/xm/create.py Fri Aug 17 14:10:26 2012 +0100 @@ -1543,8 +1543,7 @@ def main(argv): SXPPrettyPrint.prettyprint(config) if opts.vals.xmldryrun and serverType == SERVER_XEN_API: - from xml.dom.ext import PrettyPrint as XMLPrettyPrint - XMLPrettyPrint(doc) + print doc.toprettyxml() if opts.vals.dryrun or opts.vals.xmldryrun: return _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |