Commit 41519b2c authored by Steve Dower's avatar Steve Dower

Issue #26513: Fixes platform module detection of Windows Server

parent 6bde454f
......@@ -586,7 +586,7 @@ def win32_ver(release='', version='', csd='', ptype=''):
csd = 'SP' + csd[13:]
# VER_NT_SERVER = 3
if getattr(winver, 'product', None) == 3:
if getattr(winver, 'product_type', None) == 3:
release = (_WIN32_SERVER_RELEASES.get((maj, min)) or
_WIN32_SERVER_RELEASES.get((maj, None)) or
release)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment