Fix for issue1153027, making Py3k changes similar to fix in issue918368.

This will address:
a) urllib/ in py3k,
b) urllib in py2x is addressed by issue918368.
c) urllib2 in py2x was already addressed in Revision 43132.
This commit is contained in:
Senthil Kumaran 2009-05-05 18:41:13 +00:00
parent 501927d541
commit 690ce9b353
3 changed files with 15 additions and 1 deletions

View file

@ -56,7 +56,7 @@ def pathname2url(p):
drive = urllib.parse.quote(comp[0].upper())
components = comp[1].split('\\')
path = '///' + drive + '|'
path = '///' + drive + ':'
for comp in components:
if comp:
path = path + '/' + urllib.parse.quote(comp)