mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Issue #26513: Fixes platform module detection of Windows Server
This commit is contained in:
parent
8a7240eeed
commit
126c9c17ef
2 changed files with 3 additions and 1 deletions
|
@ -588,7 +588,7 @@ def win32_ver(release='', version='', csd='', ptype=''):
|
||||||
csd = 'SP' + csd[13:]
|
csd = 'SP' + csd[13:]
|
||||||
|
|
||||||
# VER_NT_SERVER = 3
|
# 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
|
release = (_WIN32_SERVER_RELEASES.get((maj, min)) or
|
||||||
_WIN32_SERVER_RELEASES.get((maj, None)) or
|
_WIN32_SERVER_RELEASES.get((maj, None)) or
|
||||||
release)
|
release)
|
||||||
|
|
|
@ -91,6 +91,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #26513: Fixes platform module detection of Windows Server
|
||||||
|
|
||||||
- Issue #23718: Fixed parsing time in week 0 before Jan 1. Original patch by
|
- Issue #23718: Fixed parsing time in week 0 before Jan 1. Original patch by
|
||||||
Tamás Bence Gedai.
|
Tamás Bence Gedai.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue