summaryrefslogtreecommitdiffstats
path: root/Lib/sysconfig.py
diff options
context:
space:
mode:
authorBryan Weber <bryan.w.weber@gmail.com>2022-04-18 21:01:18 (GMT)
committerGitHub <noreply@github.com>2022-04-18 21:01:18 (GMT)
commit0860b26a4f7abeb61aad9f4b96de8e78eed8c12a (patch)
tree53d06cd23ba463b1d4473ebee34310bcc10e0eec /Lib/sysconfig.py
parent2f0fc521f48af0dcec86dfcc8d0bc91eebf974ee (diff)
downloadcpython-0860b26a4f7abeb61aad9f4b96de8e78eed8c12a.zip
cpython-0860b26a4f7abeb61aad9f4b96de8e78eed8c12a.tar.gz
cpython-0860b26a4f7abeb61aad9f4b96de8e78eed8c12a.tar.bz2
gh-91670: Removes `SO` config variable in `sysconfig.py` (#91671)
* Removes SO config variable in sysconfig Per @warsaw in https://github.com/python/cpython/issues/63754, this was deprecated in Python 3.4 and was suggested for removal in Python 3.5. * Add NEWS * Update Misc/NEWS.d/next/Library/2022-04-18-15-23-24.gh-issue-91670.6eyChw.rst Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Barry Warsaw <barry@python.org> Co-authored-by: Éric <merwok@netwok.org>
Diffstat (limited to 'Lib/sysconfig.py')
-rw-r--r--Lib/sysconfig.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index 2a01342..e21b730 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -667,10 +667,6 @@ def get_config_vars(*args):
_CONFIG_VARS['VPATH'] = sys._vpath
if os.name == 'posix':
_init_posix(_CONFIG_VARS)
- # For backward compatibility, see issue19555
- SO = _CONFIG_VARS.get('EXT_SUFFIX')
- if SO is not None:
- _CONFIG_VARS['SO'] = SO
if _HAS_USER_BASE:
# Setting 'userbase' is done below the call to the
# init function to enable using 'get_config_var' in
@@ -715,9 +711,6 @@ def get_config_var(name):
Equivalent to get_config_vars().get(name)
"""
- if name == 'SO':
- import warnings
- warnings.warn('SO is deprecated, use EXT_SUFFIX', DeprecationWarning, 2)
return get_config_vars().get(name)