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 berker.peksag
Recipients berker.peksag, python-dev, serhiy.storchaka
Date 2013-12-16.16:24:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387211087.53.0.197260423845.issue19912@psf.upfronthosting.co.za>
In-reply-to
Content
Hi Serhiy, there are commented-out lines in changeset http://hg.python.org/cpython/rev/e4beb183a674. Are they intentionally there?

+    #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
History
Date User Action Args
2013-12-16 16:24:47berker.peksagsetrecipients: + berker.peksag, python-dev, serhiy.storchaka
2013-12-16 16:24:47berker.peksagsetmessageid: <1387211087.53.0.197260423845.issue19912@psf.upfronthosting.co.za>
2013-12-16 16:24:47berker.peksaglinkissue19912 messages
2013-12-16 16:24:47berker.peksagcreate