Senthil Kumaran added the comment:

> Serhiy Storchaka added the comment:
>
>> +        tmp_fileurl = 'file://localhost' + tmp_file
>
>         tmp_fileurl = 'file://localhost/' + tmp_file.replace(os.path.sep, '/')

Ok, I realized the mistake. 'file://localhost' + tmpfile is getting
expanded to 'file://localhostc:\something\..'
Yeah, the final '/' missing was the problem.

tmp_file.replace(...) is be better too, initial unwrap was encoding /
and  url2pathname to //. replacing path sep with '/' would be better.

Thanks for the suggestion, Serhiy.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16301>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to