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 phihag
Recipients Thomas, martin.panter, paul.moore, phihag, steve.dower, tim.golden, xiang.zhang, zach.ware
Date 2016-03-28.19:59:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1459195191.16.0.0521201180966.issue26657@psf.upfronthosting.co.za>
In-reply-to
Content
Please find attached a patch which adds a testcase for Windows (on all platforms) as well as code to fix the problem. Since os.path.split returns everything after the final slash/backslash, it only needs to be called once.

Note that the usage of posixpath is correct and only relates to the URL parsing - it powers foo/bar/../../ .

The path elements may indeed contain backslashes - that's why we call os.path.split on them.
History
Date User Action Args
2016-03-28 19:59:51phihagsetrecipients: + phihag, paul.moore, tim.golden, martin.panter, zach.ware, steve.dower, xiang.zhang, Thomas
2016-03-28 19:59:51phihagsetmessageid: <1459195191.16.0.0521201180966.issue26657@psf.upfronthosting.co.za>
2016-03-28 19:59:51phihaglinkissue26657 messages
2016-03-28 19:59:51phihagcreate