Skip to content

Commit 0d30914

Browse files
committed
Add todo comments around workarounds
1 parent 66c7b90 commit 0d30914

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Lib/sysconfig/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ def get_makefile_filename():
334334
if _PYTHON_BUILD:
335335
return os.path.join(_PROJECT_BASE, "Makefile")
336336

337+
# XXX: Remove this in Python 3.16
338+
# This flag will always be True since Python 3.16
337339
with warnings.catch_warnings():
338340
# ignore DeprecationWarning on sys.abiflags change on Windows
339341
warnings.simplefilter('ignore', DeprecationWarning)
@@ -512,6 +514,8 @@ def _init_config_vars():
512514
base_prefix = _BASE_PREFIX
513515
base_exec_prefix = _BASE_EXEC_PREFIX
514516

517+
# XXX: Remove this context manager in Python 3.16
518+
# sys.abiflags will always be available on all platforms since Python 3.16
515519
with warnings.catch_warnings():
516520
# ignore DeprecationWarning on sys.abiflags change on Windows
517521
warnings.simplefilter('ignore', DeprecationWarning)

Lib/test/pythoninfo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def get_infos(self):
4848
def copy_attributes(info_add, obj, name_fmt, attributes, *, formatter=None):
4949
for attr in attributes:
5050
if attr == 'abiflags':
51+
# XXX: Remove this special case handling in Python 3.16
5152
with warnings.catch_warnings():
5253
# ignore DeprecationWarning on sys.abiflags change on Windows
5354
warnings.simplefilter("ignore", DeprecationWarning)

Lib/test/support/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,8 @@ def check_bolt_optimized():
877877
return '--enable-bolt' in config_args
878878

879879

880+
# XXX: Remove this in Python 3.16
881+
# This flag will always be True since Python 3.16
880882
with warnings.catch_warnings():
881883
# ignore DeprecationWarning on sys.abiflags change on Windows
882884
warnings.simplefilter('ignore', DeprecationWarning)

0 commit comments

Comments
 (0)