Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: Changelog

[xen-unstable] xend: Replace the use of XMLPrettyPrint from PyXML with stdlib functionality.

 

 

Xen changelog RSS feed   Index | Next | Previous | View Threaded


patchbot at xen

Aug 17, 2012, 11:33 AM

Post #1 of 1 (69 views)
Permalink
[xen-unstable] xend: Replace the use of XMLPrettyPrint from PyXML with stdlib functionality.

# HG changeset patch
# User M A Young <m.a.young [at] durham>
# 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 [at] durham>
Acked-by: Ian Campbell <ian.campbell [at] citrix>
Committed-by: Ian Campbell <ian.campbell [at] citrix>
---


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 [at] lists
http://lists.xensource.com/xen-changelog

Xen changelog RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.