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 serhiy.storchaka
Recipients serhiy.storchaka
Date 2013-12-06.19:02:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386356571.53.0.00350504550121.issue19912@psf.upfronthosting.co.za>
In-reply-to
Content
ntpath.splitunc() returns illegal results when path contains redundant slashes.

>>> import ntpath
>>> ntpath.splitunc("\\\\\\conky\\mountpoint\\foo\\bar")
('\\\\\\conky', '\\mountpoint\\foo\\bar')
>>> ntpath.splitunc("///conky/mountpoint/foo/bar")
('///conky', '/mountpoint/foo/bar')
>>> ntpath.splitunc("\\\\conky\\\\mountpoint\\foo\\bar")
('\\\\conky\\', '\\mountpoint\\foo\\bar')

It also affected by a bug from issue19911.

It also emits warnings in wrong place (from stdlib, not from places where it is used).

It has no tests.

Proposed patch fixes these issues.
History
Date User Action Args
2013-12-06 19:02:51serhiy.storchakasetrecipients: + serhiy.storchaka
2013-12-06 19:02:51serhiy.storchakasetmessageid: <1386356571.53.0.00350504550121.issue19912@psf.upfronthosting.co.za>
2013-12-06 19:02:51serhiy.storchakalinkissue19912 messages
2013-12-06 19:02:51serhiy.storchakacreate