diff options
author | Henry Schreiner <HenrySchreinerIII@gmail.com> | 2022-10-26 21:40:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 21:40:47 (GMT) |
commit | a508631b3cf883316cc55e04692f70f1665d49d0 (patch) | |
tree | f9c4a32f9087d58010f767eb2c5a0cd185f43a98 /Lib/venv | |
parent | 6777e09166fc384ea0a4b50202c7b0bd7a23330c (diff) | |
download | cpython-a508631b3cf883316cc55e04692f70f1665d49d0.zip cpython-a508631b3cf883316cc55e04692f70f1665d49d0.tar.gz cpython-a508631b3cf883316cc55e04692f70f1665d49d0.tar.bz2 |
gh-98741: Remove useless check_home usage from is_python_build usage (GH-98743)
Diffstat (limited to 'Lib/venv')
-rw-r--r-- | Lib/venv/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py index 5e695c7..7bfc2d1 100644 --- a/Lib/venv/__init__.py +++ b/Lib/venv/__init__.py @@ -260,7 +260,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] @@ -311,7 +311,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')) @@ -326,7 +326,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: |