fixed issue with python2.6
authorJordan Augé <jordan.auge@lip6.fr>
Wed, 3 Oct 2012 07:18:06 +0000 (09:18 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 14 Jan 2013 22:55:04 +0000 (23:55 +0100)
wsdl/sfa2wsdl.py

index e794e89..0cfc8f1 100755 (executable)
@@ -9,7 +9,7 @@ import os, sys
 import time
 import pdb
 import xml.dom.minidom
-import xml.dom.ext
+#import xml.dom.ext
 import apistub
 import inspect
 
@@ -327,7 +327,8 @@ class WSDLGen:
 
     def pretty_print(self):
         if (self.wsdl):
-            xml.dom.ext.PrettyPrint(self.wsdl)
+            #xml.dom.ext.PrettyPrint(self.wsdl)
+            xml.dom.minidom.Document.toprettyxml(self.wsdl)
         else:
             raise Exception("Empty WSDL")