Author brian.curtin
Recipients brian.curtin
Date 2012-10-09.16:12:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349799142.95.0.909627211255.issue16176@psf.upfronthosting.co.za>
In-reply-to
Content
>>> 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'
History
Date User Action Args
2012-10-09 16:12:22brian.curtinsetrecipients: + brian.curtin
2012-10-09 16:12:22brian.curtinsetmessageid: <1349799142.95.0.909627211255.issue16176@psf.upfronthosting.co.za>
2012-10-09 16:12:22brian.curtinlinkissue16176 messages
2012-10-09 16:12:22brian.curtincreate