summaryrefslogtreecommitdiffstats
path: root/Lib/sysconfig.py
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2012-06-24 21:30:41 (GMT)
committerLarry Hastings <larry@hastings.org>2012-06-24 21:30:41 (GMT)
commit68386bc0b88eb4b7c9aeb4f753114dc85f8df5b6 (patch)
tree051c2a77f319435a45f398049806b6fd2e09408b /Lib/sysconfig.py
parent56ed2844fa88882a91f9ccf670c0e7a9736eb2a2 (diff)
downloadcpython-68386bc0b88eb4b7c9aeb4f753114dc85f8df5b6.zip
cpython-68386bc0b88eb4b7c9aeb4f753114dc85f8df5b6.tar.gz
cpython-68386bc0b88eb4b7c9aeb4f753114dc85f8df5b6.tar.bz2
Issue #15164: Change return value of platform.uname() from a
plain tuple to a collections.namedtuple.
Diffstat (limited to 'Lib/sysconfig.py')
-rw-r--r--Lib/sysconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index 2f5d9d0..2f2fac2 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -553,7 +553,7 @@ def get_config_vars(*args):
_CONFIG_VARS['srcdir'] = os.path.normpath(srcdir)
if sys.platform == 'darwin':
- kernel_version = os.uname()[2] # Kernel version (8.4.3)
+ kernel_version = os.uname().release # Kernel version (8.4.3)
major_version = int(kernel_version.split('.')[0])
if major_version < 8: