New submission from Serhiy Storchaka: 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. ---------- assignee: serhiy.storchaka components: Library (Lib), Tests files: ntpath_splitunc.patch keywords: patch messages: 205394 nosy: serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: ntpath.splitunc() is broken and not tested type: behavior versions: Python 2.7, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file33010/ntpath_splitunc.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19912> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com