Issue16176
Created on 2012-10-09 16:12 by brian.curtin, last changed 2012-10-11 21:28 by brian.curtin. This issue is now closed.
| Messages (4) | |||
|---|---|---|---|
| msg172490 - (view) | Author: Brian Curtin (brian.curtin) * ![]() |
Date: 2012-10-09 16:12 | |
>>> 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'
|
|||
| msg172507 - (view) | Author: Marc-Andre Lemburg (lemburg) * ![]() |
Date: 2012-10-09 19:16 | |
Brian Curtin wrote: > > New submission from Brian Curtin: > >>>> platform.platform() > 'Windows-post2008Server-6.2.9200' > > The change is trivial, just accounting for a point release of 2 (from the major release 6). Looks good. Please also backport this to Python 2.7. Thanks. > --- 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' > > ---------- > assignee: brian.curtin > components: Library (Lib), Windows > messages: 172490 > nosy: brian.curtin > priority: normal > severity: normal > status: open > title: platform.platform() identifies Windows 8 as post2008Server > type: behavior > versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4 > > _______________________________________ > Python tracker <report@bugs.python.org> > <http://bugs.python.org/issue16176> > _______________________________________ > _______________________________________________ > Python-bugs-list mailing list > Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/mal%40egenix.com > -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try our new mxODBC.Connect Python Database Interface for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ |
|||
| msg172693 - (view) | Author: Roundup Robot (python-dev) | Date: 2012-10-11 21:13 | |
New changeset 8245333db1e5 by Brian Curtin in branch '3.2': Fix #16176. Properly identify Windows 8 via platform.platform() http://hg.python.org/cpython/rev/8245333db1e5 |
|||
| msg172694 - (view) | Author: Roundup Robot (python-dev) | Date: 2012-10-11 21:17 | |
New changeset e3acc945f0cb by Brian Curtin in branch '2.7': Fix #16176. Properly identify Windows 8 via platform.platform() http://hg.python.org/cpython/rev/e3acc945f0cb |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2012-10-11 21:28:35 | brian.curtin | set | status: open -> closed resolution: fixed stage: resolved |
| 2012-10-11 21:17:00 | python-dev | set | messages: + msg172694 |
| 2012-10-11 21:13:06 | python-dev | set | nosy:
+ python-dev messages: + msg172693 |
| 2012-10-09 19:16:58 | lemburg | set | nosy:
+ lemburg messages: + msg172507 |
| 2012-10-09 16:12:22 | brian.curtin | create | |
