Skip to content

Commit 41519b2

Browse files
committed
Issue #26513: Fixes platform module detection of Windows Server
1 parent 6bde454 commit 41519b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/platform.py

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

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

0 commit comments

Comments
 (0)