mark XSD schema Import.locate method as private

This commit is contained in:
Jurko Gospodnetić 2015-07-01 10:39:48 +02:00
parent 6c48829634
commit 90cb8d6841
1 changed files with 2 additions and 2 deletions

View File

@ -564,7 +564,7 @@ class Import(SchemaObject):
self.opened = True
log.debug("%s, importing ns='%s', location='%s'", self.id, self.ns[1],
self.location)
result = self.locate()
result = self.__locate()
if result is None:
if self.location is None:
log.debug("imported schema (%s) not-found", self.ns[1])
@ -573,7 +573,7 @@ class Import(SchemaObject):
log.debug("imported:\n%s", result)
return result
def locate(self):
def __locate(self):
"""Find the schema locally."""
if self.ns[1] != self.schema.tns[1]:
return self.schema.locate(self.ns)