summaryrefslogtreecommitdiffstats
path: root/Lib/ntpath.py
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2002-10-08 02:44:31 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2002-10-08 02:44:31 (GMT)
commit8696ebcd28d38f74ee0ffa2cd82d9db1c0bad8df (patch)
tree1d688f1ea3f3b785a19760dd1477b796370c698d /Lib/ntpath.py
parent20eae69a9fb5b5453f9ddf01600f99fd6ffffed7 (diff)
downloadcpython-8696ebcd28d38f74ee0ffa2cd82d9db1c0bad8df.zip
cpython-8696ebcd28d38f74ee0ffa2cd82d9db1c0bad8df.tar.gz
cpython-8696ebcd28d38f74ee0ffa2cd82d9db1c0bad8df.tar.bz2
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.
Diffstat (limited to 'Lib/ntpath.py')
-rw-r--r--Lib/ntpath.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/ntpath.py b/Lib/ntpath.py
index d376065..73b7a2f 100644
--- a/Lib/ntpath.py
+++ b/Lib/ntpath.py
@@ -7,11 +7,13 @@ module as os.path.
import os
import stat
+import sys
__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
@@ -476,3 +478,5 @@ def abspath(path):
# realpath is a no-op on systems without islink support
realpath = abspath
+# Win9x family and earlier have no Unicode filename support.
+supports_unicode_filenames = sys.getwindowsversion()[3] >= 2