QPID-2524: Always use the file:// prefix
diff --git a/mllib/__init__.py b/mllib/__init__.py
index af192df..7d0ba99 100644
--- a/mllib/__init__.py
+++ b/mllib/__init__.py
@@ -66,12 +66,7 @@
return InputSource(systemId)
def xml_parse(filename, path=()):
- if sys.version_info[0:2] == (2,3):
- # XXX: this is for older versions of python
- from urllib import pathname2url
- source = "file:%s" % pathname2url( os.path.abspath( filename ) )
- else:
- source = filename
+ source = "file://%s" % os.path.abspath(filename)
h = parsers.XMLParser()
p = xml.sax.make_parser()
p.setContentHandler(h)