Sean Reifschneider added the comment:

Attached is a patch that fixes uname() instead of the individual
helpers.  I agree that is the better way to do it.  Again, not tested on
Windows because I don't have it.

What about adding a "isWindows()" sort of method that does the right
thing, or "amIRunningOn('Vista')"?  I suggest the latter because I
imagine the former might just lead to a bunch of "Where is isX()?" for
different platforms.  This could implement the logic so that users don't
have to know the details of this issue.

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1082>
__________________________________
Index: Lib/platform.py
===================================================================
--- Lib/platform.py	(revision 58178)
+++ Lib/platform.py	(working copy)
@@ -1146,6 +1146,12 @@
         machine = ''
     if processor == 'unknown':
         processor = ''
+
+    #  normalize name
+    if system == 'Microsoft' and release == 'Windows':
+        system = 'Windows'
+        release = 'Vista'
+
     _uname_cache = system,node,release,version,machine,processor
     return _uname_cache
 
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to