summaryrefslogtreecommitdiffstats
path: root/Lib/ntpath.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2022-09-07 20:09:20 (GMT)
committerGitHub <noreply@github.com>2022-09-07 20:09:20 (GMT)
commitde33df27aaf930be6a34027c530a651f0b4c91f5 (patch)
tree789d8df85c96cdf28c36a3e89f65d96d49949bc5 /Lib/ntpath.py
parent4114bcc9ef7595a07196bcecf9c7d6d39f57f64d (diff)
downloadcpython-de33df27aaf930be6a34027c530a651f0b4c91f5.zip
cpython-de33df27aaf930be6a34027c530a651f0b4c91f5.tar.gz
cpython-de33df27aaf930be6a34027c530a651f0b4c91f5.tar.bz2
gh-89545: Updates platform module to use new internal _wmi module on Windows to directly query OS properties (GH-96289)
Diffstat (limited to 'Lib/ntpath.py')
-rw-r--r--Lib/ntpath.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/ntpath.py b/Lib/ntpath.py
index 959bcd0..d9582f4 100644
--- a/Lib/ntpath.py
+++ b/Lib/ntpath.py
@@ -732,9 +732,8 @@ else:
return path
-# Win9x family and earlier have no Unicode filename support.
-supports_unicode_filenames = (hasattr(sys, "getwindowsversion") and
- sys.getwindowsversion()[3] >= 2)
+# All supported version have Unicode filename support.
+supports_unicode_filenames = True
def relpath(path, start=None):
"""Return a relative version of a path"""