Issue #26513: Fixes platform module detection of Windows Server

This commit is contained in:
Steve Dower 2016-09-09 09:47:09 -07:00
commit 7bcf7931fc
1 changed files with 1 additions and 1 deletions

View File

@ -585,7 +585,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)