====
[plcapi.git] / wsdl / api2wsdl.py
index 36866c9..296048e 100755 (executable)
@@ -12,7 +12,6 @@ import os, sys
 import time
 import pdb
 import xml.dom.minidom
-import xml.dom.ext
 import inspect
 import globals
 
@@ -24,12 +23,6 @@ from PLC.Parameter import Parameter, Mixed, python_type, xmlrpc_type
 
 api = PLCAPI(None)
 
-try:
-    set
-except NameError:
-    from sets import Set
-    set = Set
-
 # Class functions
 
 def param_type(param):
@@ -152,5 +145,5 @@ add_wsdl_ports_and_bindings(wsdl)
 add_wsdl_service(wsdl)
 
 
-xml.dom.ext.PrettyPrint(wsdl)
+print wsdl.toprettyxml()