fixed issue with python2.6
[sfa.git] / 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")