From c5743e2761aa666bce95d5a1bd7611a96c645832 Mon Sep 17 00:00:00 2001 From: Keith Wall Date: Sat, 6 Sep 2014 22:06:05 +0000 Subject: QPID-6083: [Python Client] utilise pathname2url when constructing spec file location on older python versions git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1622950 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/python/mllib/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qpid/python/mllib') diff --git a/qpid/python/mllib/__init__.py b/qpid/python/mllib/__init__.py index 9aa1e56e66..af192df1d1 100644 --- a/qpid/python/mllib/__init__.py +++ b/qpid/python/mllib/__init__.py @@ -68,7 +68,8 @@ class Resolver: def xml_parse(filename, path=()): if sys.version_info[0:2] == (2,3): # XXX: this is for older versions of python - source = "file://%s" % os.path.abspath(filename) + from urllib import pathname2url + source = "file:%s" % pathname2url( os.path.abspath( filename ) ) else: source = filename h = parsers.XMLParser() -- cgit v1.2.1