swc-installation-test-2.py: Use the more portable platform.uname()
authorW. Trevor King <wking@tremily.us>
Tue, 1 Jan 2013 13:26:02 +0000 (08:26 -0500)
committerW. Trevor King <wking@tremily.us>
Tue, 1 Jan 2013 14:49:49 +0000 (09:49 -0500)
From the docs [1,2]:

  platform.uname():
    Fairly portable uname interface...  Entries which cannot be
    determined are set to ''.

  os.uname():
    ... Availability: recent flavors of Unix.

[1]: http://docs.python.org/2/library/platform.html#platform.uname
[2]: http://docs.python.org/2/library/os.html#os.uname

swc-installation-test-2.py

index a1622eaa5e5e69c8eec922d013641b0fab26088e..f0ec903759d638a30be011a8a3f9501725a8983a 100755 (executable)
@@ -483,10 +483,7 @@ def print_system_info():
     print('System information')
     print('==================')
     _print_info('os.name', _os.name)
-    try:
-        _print_info('os.uname', _os.uname())
-    except:
-        pass
+    _print_info('os.uname', _platform.uname())
     _print_info('platform', _sys.platform)
     _print_info('platform+', _platform.platform())
     _print_info('prefix', _sys.prefix)