X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=wsdl%2Fsfa2wsdl.py;h=2ec130722d2ebde753f8c858e7bdcc53f932a08e;hb=ecc85e0b923922cf7117d29b380f5284edb88f21;hp=3811d705989ef9fdd5effa59b39c61c40c273ad6;hpb=554cab46e9b7dd40fe67bfb3972f3d15eaf1a354;p=sfa.git diff --git a/wsdl/sfa2wsdl.py b/wsdl/sfa2wsdl.py index 3811d705..2ec13072 100755 --- a/wsdl/sfa2wsdl.py +++ b/wsdl/sfa2wsdl.py @@ -9,7 +9,6 @@ import os, sys import time import pdb import xml.dom.minidom -#import xml.dom.ext import apistub import inspect @@ -167,7 +166,7 @@ class WSDLGen: return "xsd:string" else: pdb.set_trace() - raise SoapError, "Cannot handle %s objects" % arg_type + raise SoapError("Cannot handle %s objects" % arg_type) def param_type(self, arg): return (self.name_complex_type(arg)) @@ -327,10 +326,9 @@ class WSDLGen: def pretty_print(self): if (self.wsdl): - #xml.dom.ext.PrettyPrint(self.wsdl) - xml.dom.minidom.Document.toprettyxml(self.wsdl) + print xml.dom.minidom.Document.toprettyxml(self.wsdl) else: - raise Exception("Empty WSDL") + raise Exception("Empty WSDL") def main(): parser = OptionParser()