diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/util.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index 6674d0a..63b6bec 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -545,10 +545,8 @@ def get_platform (): i.e. "???" or "???".""" if os.name == 'posix': - uname = os.uname() - OS = uname[0] - arch = uname[4] - return "%s-%s" % (string.lower (OS), string.lower (arch)) + (OS, _, rel, _, arch) = os.uname() + return "%s%c-%s" % (string.lower (OS), rel[0], string.lower (arch)) else: return sys.platform |