Skip to content

Commit 3bad567

Browse files
[3.11] gh-98741: Remove useless check_home usage from is_python_build usage (GH-98743) (GH-98746)
Co-authored-by: Henry Schreiner <[email protected]>
1 parent 5f86275 commit 3bad567

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Lib/test/support/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ def _platform_specific(self):
14981498

14991499
self._env = {k.upper(): os.getenv(k) for k in os.environ}
15001500
self._env["PYTHONHOME"] = os.path.dirname(self.real)
1501-
if sysconfig.is_python_build(True):
1501+
if sysconfig.is_python_build():
15021502
self._env["PYTHONPATH"] = STDLIB_DIR
15031503
else:
15041504
def _platform_specific(self):

Lib/venv/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def symlink_or_copy(self, src, dst, relative_symlinks_ok=False):
259259
basename + ext)
260260
# Builds or venv's from builds need to remap source file
261261
# locations, as we do not put them into Lib/venv/scripts
262-
if sysconfig.is_python_build(True) or not os.path.isfile(srcfn):
262+
if sysconfig.is_python_build() or not os.path.isfile(srcfn):
263263
if basename.endswith('_d'):
264264
ext = '_d' + ext
265265
basename = basename[:-2]
@@ -310,7 +310,7 @@ def setup_python(self, context):
310310
f for f in os.listdir(dirname) if
311311
os.path.normcase(os.path.splitext(f)[1]) in ('.exe', '.dll')
312312
]
313-
if sysconfig.is_python_build(True):
313+
if sysconfig.is_python_build():
314314
suffixes = [
315315
f for f in suffixes if
316316
os.path.normcase(f).startswith(('python', 'vcruntime'))
@@ -325,7 +325,7 @@ def setup_python(self, context):
325325
if os.path.lexists(src):
326326
copier(src, os.path.join(binpath, suffix))
327327

328-
if sysconfig.is_python_build(True):
328+
if sysconfig.is_python_build():
329329
# copy init.tcl
330330
for root, dirs, files in os.walk(context.python_dir):
331331
if 'init.tcl' in files:

0 commit comments

Comments
 (0)