diff --git a/WSDLTools.py b/WSDLTools.py index 51394a7..578b581 100755 --- a/WSDLTools.py +++ b/WSDLTools.py @@ -306,7 +306,6 @@ class WSDL: location = urllib.basejoin(base_location, location) element.setAttributeNS(None, 'location', location) - location = urllib.basejoin(self.location, location) obimport = self.addImport(namespace, location) obimport._loaded = 1 diff --git a/XMLSchema.py b/XMLSchema.py index 46f18c0..ffc480c 100755 --- a/XMLSchema.py +++ b/XMLSchema.py @@ -105,8 +105,6 @@ class SchemaReader: """Return an XMLSchema instance loaded from the given url. url -- URL to dereference """ - if not url.endswith('xsd'): - raise SchemaError, 'unknown file type %s' %url reader = self.__readerClass() if self.__base_url: url = urllib.basejoin(self.__base_url,url)