diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-16 12:36:10 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-16 12:36:10 (GMT) |
commit | f5ad91c392199fe8fabeed34d1dce6f8be3a0921 (patch) | |
tree | 0a8fbf8311bf2a5a15c269ba783ca3f359ad8365 /Lib/ntpath.py | |
parent | 755d5ea12aff91dfc4c4fe7302d911da33fffa82 (diff) | |
parent | 3d7e11520e5993b2adf9b809a8342084053988ae (diff) | |
download | cpython-f5ad91c392199fe8fabeed34d1dce6f8be3a0921.zip cpython-f5ad91c392199fe8fabeed34d1dce6f8be3a0921.tar.gz cpython-f5ad91c392199fe8fabeed34d1dce6f8be3a0921.tar.bz2 |
Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' character
(U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
Diffstat (limited to 'Lib/ntpath.py')
-rw-r--r-- | Lib/ntpath.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 6b65697..3d9e200 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -204,7 +204,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 |