Skip to content

Commit a508631

Browse files
authored
gh-98741: Remove useless check_home usage from is_python_build usage (GH-98743)
1 parent 6777e09 commit a508631

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Lib/test/support/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@ def _platform_specific(self):
15031503

15041504
self._env = {k.upper(): os.getenv(k) for k in os.environ}
15051505
self._env["PYTHONHOME"] = os.path.dirname(self.real)
1506-
if sysconfig.is_python_build(True):
1506+
if sysconfig.is_python_build():
15071507
self._env["PYTHONPATH"] = STDLIB_DIR
15081508
else:
15091509
def _platform_specific(self):

Lib/venv/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def symlink_or_copy(self, src, dst, relative_symlinks_ok=False):
260260
basename + ext)
261261
# Builds or venv's from builds need to remap source file
262262
# locations, as we do not put them into Lib/venv/scripts
263-
if sysconfig.is_python_build(True) or not os.path.isfile(srcfn):
263+
if sysconfig.is_python_build() or not os.path.isfile(srcfn):
264264
if basename.endswith('_d'):
265265
ext = '_d' + ext
266266
basename = basename[:-2]
@@ -311,7 +311,7 @@ def setup_python(self, context):
311311
f for f in os.listdir(dirname) if
312312
os.path.normcase(os.path.splitext(f)[1]) in ('.exe', '.dll')
313313
]
314-
if sysconfig.is_python_build(True):
314+
if sysconfig.is_python_build():
315315
suffixes = [
316316
f for f in suffixes if
317317
os.path.normcase(f).startswith(('python', 'vcruntime'))
@@ -326,7 +326,7 @@ def setup_python(self, context):
326326
if os.path.lexists(src):
327327
copier(src, os.path.join(binpath, suffix))
328328

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

0 commit comments

Comments
 (0)