Use filename instead of URI for XML parser (works on Windows and Linux)

svn: r6215
This commit is contained in:
Brian Matherly
2006-03-29 02:25:04 +00:00
parent d9085cf219
commit 4813ce09d7
8 changed files with 20 additions and 13 deletions

View File

@@ -2314,10 +2314,7 @@ class GenericFilterList:
try:
parser = make_parser()
parser.setContentHandler(FilterParser(self))
if self.file[0:7] != "file://":
parser.parse("file://" + self.file)
else:
parser.parse(self.file)
parser.parse(self.file)
except (IOError,OSError):
pass
except SAXParseException: