This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author orsenthil
Recipients orsenthil, python-dev, serhiy.storchaka
Date 2012-10-23.16:38:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAPOVWOQ9PMgq6RFUydo46QykmPKpr4mABLUK5aTfg73ikvBFkw@mail.gmail.com>
In-reply-to <1350997437.56.0.00880107741186.issue16301@psf.upfronthosting.co.za>
Content
> 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.
History
Date User Action Args
2012-10-23 16:38:41orsenthilsetrecipients: + orsenthil, python-dev, serhiy.storchaka
2012-10-23 16:38:41orsenthillinkissue16301 messages
2012-10-23 16:38:41orsenthilcreate