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:
Mark Hammond 2002-10-08 02:44:31 +00:00
parent 20eae69a9f
commit 8696ebcd28
11 changed files with 101 additions and 11 deletions

View file

@ -11,7 +11,8 @@ import stat
__all__ = ["normcase","isabs","join","splitdrive","split","splitext",
"basename","dirname","commonprefix","getsize","getmtime",
"getatime","islink","exists","isdir","isfile","ismount",
"walk","expanduser","expandvars","normpath","abspath","splitunc"]
"walk","expanduser","expandvars","normpath","abspath","splitunc",
"supports_unicode_filenames"]
# Normalize the case of a pathname and map slashes to backslashes.
# Other normalizations (such as optimizing '../' away) are not done
@ -400,3 +401,5 @@ def abspath(path):
if not isabs(path):
path = join(os.getcwd(), path)
return normpath(path)
supports_unicode_filenames = False