diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-16 16:43:00 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-16 16:43:00 (GMT) |
commit | 2f43b635436b9c95338194feed8cc4540e6d96fd (patch) | |
tree | 520fcce8b704bf18e9214e2377ef559fbff459d3 /Lib/ntpath.py | |
parent | 51e90bcee502499e4f7fcda9a55b5311b911c934 (diff) | |
download | cpython-2f43b635436b9c95338194feed8cc4540e6d96fd.zip cpython-2f43b635436b9c95338194feed8cc4540e6d96fd.tar.gz cpython-2f43b635436b9c95338194feed8cc4540e6d96fd.tar.bz2 |
Removed old implementation of ntpath.splitunc() (issue #19912).
Diffstat (limited to 'Lib/ntpath.py')
-rw-r--r-- | Lib/ntpath.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 04f0b2d..f3b3111 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -136,25 +136,6 @@ def splitunc(p): using backslashes). unc+rest is always the input path. Paths containing drive letters never have an UNC part. """ - #if p[1:2] == ':': - #return '', p # Drive letter present - #firstTwo = p[0:2] - #if firstTwo == '//' or firstTwo == '\\\\': - ## is a UNC path: - ## vvvvvvvvvvvvvvvvvvvv equivalent to drive letter - ## \\machine\mountpoint\directories... - ## directory ^^^^^^^^^^^^^^^ - #normp = normcase(p) - #index = normp.find('\\', 2) - #if index == -1: - ###raise RuntimeError, 'illegal UNC path: "' + p + '"' - #return ("", p) - #index = normp.find('\\', index + 1) - #if index == -1: - #index = len(p) - #return p[:index], p[index:] - #return '', p - if p[1:2] == ':': return '', p # Drive letter present firstTwo = p[0:2] |