diff options
author | Larry Hastings <larry@hastings.org> | 2012-06-24 14:30:41 -0700 |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2012-06-24 14:30:41 -0700 |
commit | 77ff74907b2cbeda98cfeb12c3b05deab7e4f751 (patch) | |
tree | 9ed6b2ef73d73e6e79ea764182e8c38918ac3e01 /Lib/sysconfig.py | |
parent | c6efa0e49b0a78bc866f0d38c9b9b5e6bfa59081 (diff) | |
download | cpython-77ff74907b2cbeda98cfeb12c3b05deab7e4f751.tar.gz |
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 2f5d9d0c9c..2f2fac287b 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: |