]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
xend: Replace the use of XMLPrettyPrint from PyXML with stdlib functionality.
authorM A Young <m.a.young@durham.ac.uk>
Fri, 17 Aug 2012 13:10:26 +0000 (14:10 +0100)
committerM A Young <m.a.young@durham.ac.uk>
Fri, 17 Aug 2012 13:10:26 +0000 (14:10 +0100)
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@durham.ac.uk>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/python/xen/xm/create.py

index 5b52e3a70690c51251fdbfeb7917dc4f9dd16569..7bad9109414eed955a292c4967fa8d9e6dcb2f7a 100644 (file)
@@ -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