mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add os.path.supports_unicode_filenames for all platforms,
sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink> version), and fix test_pep277.py in a few minor ways. Including doc and NEWS entries.
This commit is contained in:
parent
20eae69a9f
commit
8696ebcd28
11 changed files with 101 additions and 11 deletions
|
@ -17,7 +17,7 @@ __all__ = ["normcase","isabs","join","splitdrive","split","splitext",
|
|||
"basename","dirname","commonprefix","getsize","getmtime",
|
||||
"getatime","islink","exists","isdir","isfile","ismount",
|
||||
"walk","expanduser","expandvars","normpath","abspath",
|
||||
"samefile","sameopenfile","samestat"]
|
||||
"samefile","sameopenfile","samestat","supports_unicode_filenames"]
|
||||
|
||||
# Normalize the case of a pathname. Trivial in Posix, string.lower on Mac.
|
||||
# On MS-DOS this may also turn slashes into backslashes; however, other
|
||||
|
@ -409,3 +409,6 @@ symbolic links encountered in the path."""
|
|||
return realpath(newpath)
|
||||
|
||||
return filename
|
||||
|
||||
supports_unicode_filenames = False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue