Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 126c9c1

Browse files
committed
Issue #26513: Fixes platform module detection of Windows Server
1 parent 8a7240e commit 126c9c1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ def win32_ver(release='', version='', csd='', ptype=''):
588588
csd = 'SP' + csd[13:]
589589

590590
# VER_NT_SERVER = 3
591-
if getattr(winver, 'product_type', None) == 3:
591+
if getattr(winver, 'product', None) == 3:
592592
release = (_WIN32_SERVER_RELEASES.get((maj, min)) or
593593
_WIN32_SERVER_RELEASES.get((maj, None)) or
594594
release)

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ Core and Builtins
9191
Library
9292
-------
9393

94+
- Issue #26513: Fixes platform module detection of Windows Server
95+
9496
- Issue #23718: Fixed parsing time in week 0 before Jan 1. Original patch by
9597
Tamás Bence Gedai.
9698

0 commit comments

Comments
 (0)