mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-41282: Fix distutils.utils.byte_compile() DeprecationWarning (GH-25406)
* byte_compile() of distutils.utils no longer logs a DeprecationWarning * test_distutils no longer logs a DeprecationWarning
This commit is contained in:
parent
a6a5c91b1e
commit
69ca32e0d3
3 changed files with 17 additions and 7 deletions
|
@ -13,7 +13,8 @@ import warnings
|
|||
|
||||
__version__ = sys.version[:sys.version.index(' ')]
|
||||
|
||||
warnings.warn("The distutils package is deprecated and slated for "
|
||||
"removal in Python 3.12. Use setuptools or check "
|
||||
"PEP 632 for potential alternatives",
|
||||
_DEPRECATION_MESSAGE = ("The distutils package is deprecated and slated for "
|
||||
"removal in Python 3.12. Use setuptools or check "
|
||||
"PEP 632 for potential alternatives")
|
||||
warnings.warn(_DEPRECATION_MESSAGE,
|
||||
DeprecationWarning, 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue