Sean Reifschneider added the comment:
Attached a patch which I *THINK* fixes this, but I don't run Windows.
Can someone else check this?
----------
assignee: -> lemburg
nosy: +jafo, lemburg
priority: -> normal
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1082>
__________________________________
Index: Lib/platform.py
===================================================================
--- Lib/platform.py (revision 58178)
+++ Lib/platform.py (working copy)
@@ -1158,7 +1158,9 @@
An empty string is returned if the value cannot be determined.
"""
- return uname()[0]
+ systemName = uname()[0]
+ if systemName == 'Microsoft': return 'Windows'
+ return systemName
def node():
@@ -1177,7 +1179,10 @@
An empty string is returned if the value cannot be determined.
"""
- return uname()[2]
+ unameInfo = uname()
+ if unameInfo[0] == 'Microsoft' and unameInfo == 'Windows':
+ return 'Vista'
+ return unameInfo[2]
def version():
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com