Message172490
>>> platform.platform() 'Windows-post2008Server-6.2.9200' The change is trivial, just accounting for a point release of 2 (from the major release 6). --- a/Lib/platform.py +++ b/Lib/platform.py @@ -595,8 +595,13 @@ release = '7' else: release = '2008ServerR2' + elif min == 2: + if product_type == VER_NT_WORKSTATION: + release = '8' + else: + release = '2012Server' else: - release = 'post2008Server' + release = 'post2012Server' | |
| Date | User | Action | Args | | 2012-10-09 16:12:22 | brian.curtin | set | recipients: + brian.curtin | | 2012-10-09 16:12:22 | brian.curtin | set | messageid: <1349799142.95.0.909627211255.issue16176@psf.upfronthosting.co.za> | | 2012-10-09 16:12:22 | brian.curtin | link | issue16176 messages | | 2012-10-09 16:12:22 | brian.curtin | create | | |