-#!/usr/bin/python
+#!/usr/bin/env python3
#
# Sapan Bhatia <sapanb@cs.princeton.edu>
#
def add_wsdl_services(self):
- for service in self.services.keys():
+ for service in list(self.services.keys()):
if (getattr(self.interface_options,service)):
service_el = self.wsdl.lastChild.appendChild(self.wsdl.createElement("service"))
service_el.setAttribute("name", service)
def pretty_print(self):
if (self.wsdl):
- print xml.dom.minidom.Document.toprettyxml(self.wsdl)
+ print(xml.dom.minidom.Document.toprettyxml(self.wsdl))
else:
raise Exception("Empty WSDL")