mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
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:
parent
4114bcc9ef
commit
de33df27aa
17 changed files with 856 additions and 88 deletions
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue