Skip to content

Commit 1b634c4

Browse files
committed
Update todo comments
1 parent 81ef28e commit 1b634c4

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

Lib/sysconfig/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +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
337+
# TODO: Remove this in Python 3.16.
338+
# This flag will always be True since Python 3.16.
339339
with warnings.catch_warnings():
340340
# ignore DeprecationWarning on sys.abiflags change on Windows
341341
warnings.filterwarnings('ignore', r'sys\.abiflags', category=DeprecationWarning)

Lib/test/pythoninfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +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
51+
# TODO: Remove this special case handling in Python 3.16
5252
with warnings.catch_warnings():
5353
# ignore DeprecationWarning on sys.abiflags change on Windows
5454
warnings.filterwarnings('ignore', r'sys\.abiflags', category=DeprecationWarning)

Lib/test/support/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,8 +883,8 @@ def check_bolt_optimized():
883883
return '--enable-bolt' in config_args
884884

885885

886-
# XXX: Remove this in Python 3.16
887-
# This flag will always be True since Python 3.16
886+
# TODO: Remove this in Python 3.16.
887+
# This flag will always be True since Python 3.16.
888888
with warnings.catch_warnings():
889889
# ignore DeprecationWarning on sys.abiflags change on Windows
890890
warnings.filterwarnings('ignore', r'sys\.abiflags', category=DeprecationWarning)

Lib/test/test_sys.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,8 @@ def test_attributes(self):
727727
self.assertIsInstance(sys.abiflags, str)
728728
else:
729729
self.assertEqual(os.name, 'nt')
730-
# TODO: sys.abiflags will be defined on Windows in Python 3.16.
730+
# TODO: Simpify the tests.
731+
# sys.abiflags will be defined on Windows in Python 3.16.
731732
absent = object()
732733
with self.assertWarnsRegex(
733734
DeprecationWarning,

Python/sysmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ module sys
7676

7777
#ifndef ABIFLAGS
7878

79-
// XXX: remove this and related code after set sys.abiflags on Windows in 3.16.
79+
// TODO: Remove this and related code in Python 3.16. Set the `ABIFLAGS` macro
80+
// and `sys.abiflags` on Windows.
8081
static inline int
8182
_warn_incoming_sys_abiflags_change(void)
8283
{

0 commit comments

Comments
 (0)