summaryrefslogtreecommitdiff
path: root/Lib/platform.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-03-12 08:06:23 -0800
committerSteve Dower <steve.dower@microsoft.com>2016-03-12 08:06:23 -0800
commit126c9c17efedc6f69d5d86de4b660f3b44e635e4 (patch)
treeb2d50c958405389ebcf0b4be944a407ecd027837 /Lib/platform.py
parent8a7240eeed609f747bdf38985679816ed9f61a0e (diff)
downloadcpython-git-126c9c17efedc6f69d5d86de4b660f3b44e635e4.tar.gz
Issue #26513: Fixes platform module detection of Windows Server
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-xLib/platform.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/platform.py b/Lib/platform.py
index f3d2c42387..042d39a50f 100755
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -588,7 +588,7 @@ def win32_ver(release='', version='', csd='', ptype=''):
csd = 'SP' + csd[13:]
# VER_NT_SERVER = 3
- if getattr(winver, 'product_type', None) == 3:
+ if getattr(winver, 'product', None) == 3:
release = (_WIN32_SERVER_RELEASES.get((maj, min)) or
_WIN32_SERVER_RELEASES.get((maj, None)) or
release)