Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove deprecations
  • Loading branch information
vstinner committed May 9, 2022
commit 9852be0e9032e18f9f04531f8e6f6265c2aa9119
7 changes: 0 additions & 7 deletions Lib/_distutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,5 @@
"""

import sys
import warnings

__version__ = sys.version[:sys.version.index(' ')]

_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)
8 changes: 0 additions & 8 deletions Lib/_distutils/sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import os
import re
import sys
import warnings

from functools import partial

Expand Down Expand Up @@ -55,13 +54,6 @@
if os.name == "nt":
from sysconfig import _fix_pcbuild

warnings.warn(
'The distutils.sysconfig module is deprecated, use sysconfig instead',
DeprecationWarning,
stacklevel=2
)


# Following functions are the same as in sysconfig but with different API
def parse_config_h(fp, g=None):
return sysconfig_parse_config_h(fp, vars=g)
Expand Down