Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2f43b635
Commit
2f43b635
authored
Dec 16, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed old implementation of ntpath.splitunc() (issue #19912).
parent
51e90bce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
Lib/ntpath.py
Lib/ntpath.py
+0
-19
No files found.
Lib/ntpath.py
View file @
2f43b635
...
...
@@ -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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment