Skip to content

Commit ac8005c

Browse files
committed
Add more details in warning message
1 parent 2eeac04 commit ac8005c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Doc/library/sys.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ always available. Unless explicitly noted otherwise, all variables are read-only
4545
import warnings
4646
4747
with warnings.catch_warnings():
48-
# ignore DeprecationWarning on sys.abiflags change
48+
# ignore DeprecationWarning on sys.abiflags change on Windows
4949
warnings.simplefilter('ignore', DeprecationWarning)
5050
abiflags = getattr(sys, 'abiflags', '')
5151

Lib/site.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def joinuser(*args):
320320
def _get_path(userbase):
321321
version = sys.version_info
322322
with warnings.catch_warnings():
323-
# ignore DeprecationWarning on sys.abiflags change
323+
# ignore DeprecationWarning on sys.abiflags change on Windows
324324
warnings.simplefilter('ignore', DeprecationWarning)
325325
abiflags = getattr(sys, 'abiflags', '')
326326
if 't' in abiflags:
@@ -406,7 +406,7 @@ def getsitepackages(prefixes=None):
406406
implementation = _get_implementation().lower()
407407
ver = sys.version_info
408408
with warnings.catch_warnings():
409-
# ignore DeprecationWarning on sys.abiflags change
409+
# ignore DeprecationWarning on sys.abiflags change on Windows
410410
warnings.simplefilter('ignore', DeprecationWarning)
411411
abiflags = getattr(sys, 'abiflags', '')
412412
if 't' in abiflags:

Lib/sysconfig/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def get_makefile_filename():
335335
return os.path.join(_PROJECT_BASE, "Makefile")
336336

337337
with warnings.catch_warnings():
338-
# ignore DeprecationWarning on sys.abiflags change
338+
# ignore DeprecationWarning on sys.abiflags change on Windows
339339
warnings.simplefilter('ignore', DeprecationWarning)
340340
has_abiflags = hasattr(sys, 'abiflags')
341341

@@ -513,7 +513,7 @@ def _init_config_vars():
513513
base_exec_prefix = _BASE_EXEC_PREFIX
514514

515515
with warnings.catch_warnings():
516-
# ignore DeprecationWarning on sys.abiflags change
516+
# ignore DeprecationWarning on sys.abiflags change on Windows
517517
warnings.simplefilter('ignore', DeprecationWarning)
518518
abiflags = getattr(sys, 'abiflags', '')
519519

Lib/test/pythoninfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def copy_attributes(info_add, obj, name_fmt, attributes, *, formatter=None):
4949
for attr in attributes:
5050
if attr == 'abiflags':
5151
with warnings.catch_warnings():
52-
# ignore DeprecationWarning on sys.abiflags change
52+
# ignore DeprecationWarning on sys.abiflags change on Windows
5353
warnings.simplefilter("ignore", DeprecationWarning)
5454
value = getattr(obj, attr, None)
5555
else:

0 commit comments

Comments
 (0)