mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
This commit is contained in:
parent
8a1d1e647e
commit
3d7e11520e
3 changed files with 7 additions and 1 deletions
|
@ -207,7 +207,7 @@ def splitdrive(p):
|
|||
empty = _get_empty(p)
|
||||
if len(p) > 1:
|
||||
sep = _get_sep(p)
|
||||
normp = normcase(p)
|
||||
normp = p.replace(_get_altsep(p), sep)
|
||||
if (normp[0:2] == sep*2) and (normp[2:3] != sep):
|
||||
# is a UNC path:
|
||||
# vvvvvvvvvvvvvvvvvvvv drive letter or UNC path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue