diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-26 22:35:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 22:35:54 (GMT) |
commit | 3bad567d085e5380fd6c4309e44aee7b8ee4ea36 (patch) | |
tree | 4e252f81c3cc50021e5681e058c4c8cdea256e34 | |
parent | 5f86275ec2d9c82997e9a314409773cc53799d4e (diff) | |
download | cpython-3bad567d085e5380fd6c4309e44aee7b8ee4ea36.zip cpython-3bad567d085e5380fd6c4309e44aee7b8ee4ea36.tar.gz cpython-3bad567d085e5380fd6c4309e44aee7b8ee4ea36.tar.bz2 |
[3.11] gh-98741: Remove useless check_home usage from is_python_build usage (GH-98743) (GH-98746)
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
-rw-r--r-- | Lib/test/support/__init__.py | 2 | ||||
-rw-r--r-- | Lib/venv/__init__.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 46087a9..8ee8147 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -1498,7 +1498,7 @@ class PythonSymlink: self._env = {k.upper(): os.getenv(k) for k in os.environ} self._env["PYTHONHOME"] = os.path.dirname(self.real) - if sysconfig.is_python_build(True): + if sysconfig.is_python_build(): self._env["PYTHONPATH"] = STDLIB_DIR else: def _platform_specific(self): diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py index fbb002f..6bce308 100644 --- a/Lib/venv/__init__.py +++ b/Lib/venv/__init__.py @@ -259,7 +259,7 @@ class EnvBuilder: basename + ext) # Builds or venv's from builds need to remap source file # locations, as we do not put them into Lib/venv/scripts - if sysconfig.is_python_build(True) or not os.path.isfile(srcfn): + if sysconfig.is_python_build() or not os.path.isfile(srcfn): if basename.endswith('_d'): ext = '_d' + ext basename = basename[:-2] @@ -310,7 +310,7 @@ class EnvBuilder: f for f in os.listdir(dirname) if os.path.normcase(os.path.splitext(f)[1]) in ('.exe', '.dll') ] - if sysconfig.is_python_build(True): + if sysconfig.is_python_build(): suffixes = [ f for f in suffixes if os.path.normcase(f).startswith(('python', 'vcruntime')) @@ -325,7 +325,7 @@ class EnvBuilder: if os.path.lexists(src): copier(src, os.path.join(binpath, suffix)) - if sysconfig.is_python_build(True): + if sysconfig.is_python_build(): # copy init.tcl for root, dirs, files in os.walk(context.python_dir): if 'init.tcl' in files: |