gh-89545: Updates platform module to use new internal _wmi module on Windows to directly query OS properties (GH-96289)

This commit is contained in:
Steve Dower 2022-09-07 21:09:20 +01:00 committed by GitHub
parent 4114bcc9ef
commit de33df27aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 856 additions and 88 deletions

View file

@ -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"""