]> granicus.if.org Git - python/commitdiff
Removed old implementation of ntpath.splitunc() (issue #19912).
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 16 Dec 2013 16:43:00 +0000 (18:43 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 16 Dec 2013 16:43:00 +0000 (18:43 +0200)
Lib/ntpath.py

index 04f0b2d4b35a0b9f6a4908790903a5920a70e2da..f3b3111896814e6edc7f91036ce7fc7bc553716f 100644 (file)
@@ -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]