Message205394
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. |
|
Date |
User |
Action |
Args |
2013-12-06 19:02:51 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka |
2013-12-06 19:02:51 | serhiy.storchaka | set | messageid: <1386356571.53.0.00350504550121.issue19912@psf.upfronthosting.co.za> |
2013-12-06 19:02:51 | serhiy.storchaka | link | issue19912 messages |
2013-12-06 19:02:51 | serhiy.storchaka | create | |
|