target file path from a catalog is allowed not to start with file://

This commit is contained in:
sebd 2005-01-26 12:09:14 +00:00
parent f236ed7e2f
commit e712606d52
1 changed files with 1 additions and 1 deletions

View File

@ -962,7 +962,7 @@ def registerElement(namespaceUri, elementName, elementClass = None, schemaLocati
descriptionFileUri = libxml2.catalogResolveSystem(descriptionLocation)
if descriptionFileUri is None:
logs.debug("Missing description file '%s'." % descriptionLocation)
else:
elif descriptionFileUri.startswith("file://"):
descriptionAbsolutePath = descriptionFileUri[len("file://"):]
else:
assert not descriptionLocation.startswith("/")