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
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)