Skip to content

Commit ecd7456

Browse files
committed
Remove deprecated 'check_home' argument from sysconfig.is_python_build
1 parent 5d5acd7 commit ecd7456

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Lib/sysconfig/__init__.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -219,18 +219,7 @@ def _safe_realpath(path):
219219
if "_PYTHON_PROJECT_BASE" in os.environ:
220220
_PROJECT_BASE = _safe_realpath(os.environ["_PYTHON_PROJECT_BASE"])
221221

222-
def is_python_build(check_home=None):
223-
if check_home is not None:
224-
import warnings
225-
warnings.warn(
226-
(
227-
'The check_home argument of sysconfig.is_python_build is '
228-
'deprecated and its value is ignored. '
229-
'It will be removed in Python 3.15.'
230-
),
231-
DeprecationWarning,
232-
stacklevel=2,
233-
)
222+
def is_python_build():
234223
for fn in ("Setup", "Setup.local"):
235224
if os.path.isfile(os.path.join(_PROJECT_BASE, "Modules", fn)):
236225
return True

0 commit comments

Comments
 (0)