[Python-checkins] cpython (2.7): Removed old implementation of ntpath.splitunc() (issue #19912).
serhiy.storchaka
python-checkins at python.org
Mon Dec 16 17:43:52 CET 2013
http://hg.python.org/cpython/rev/4de09cbd3b97
changeset: 88002:4de09cbd3b97
branch: 2.7
parent: 87999:f590e9aeb990
user: Serhiy Storchaka <storchaka at gmail.com>
date: Mon Dec 16 18:43:00 2013 +0200
summary:
Removed old implementation of ntpath.splitunc() (issue #19912).
files:
Lib/ntpath.py | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
diff --git a/Lib/ntpath.py b/Lib/ntpath.py
--- a/Lib/ntpath.py
+++ b/Lib/ntpath.py
@@ -136,25 +136,6 @@
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]
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list