You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kw...@apache.org on 2014/09/07 00:06:05 UTC

svn commit: r1622950 - /qpid/trunk/qpid/python/mllib/__init__.py

Author: kwall
Date: Sat Sep  6 22:06:05 2014
New Revision: 1622950

URL: http://svn.apache.org/r1622950
Log:
QPID-6083: [Python Client] utilise pathname2url when constructing spec file location on older python versions

Modified:
    qpid/trunk/qpid/python/mllib/__init__.py

Modified: qpid/trunk/qpid/python/mllib/__init__.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/mllib/__init__.py?rev=1622950&r1=1622949&r2=1622950&view=diff
==============================================================================
--- qpid/trunk/qpid/python/mllib/__init__.py (original)
+++ qpid/trunk/qpid/python/mllib/__init__.py Sat Sep  6 22:06:05 2014
@@ -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()



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org