Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 197f044

Browse files
authored
bpo-35755: Don't say "to mimick Unix which command behavior" (GH-12861)
1 parent 693c104 commit 197f044

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

Lib/distutils/spawn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def find_executable(executable, path=None):
188188
# os.confstr() or CS_PATH is not available
189189
path = os.defpath
190190
# bpo-35755: Don't use os.defpath if the PATH environment variable is
191-
# set to an empty string to mimick Unix which command behavior
191+
# set to an empty string
192192

193193
# PATH='' doesn't match, whereas PATH=':' looks in the current directory
194194
if not path:

Lib/shutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ def which(cmd, mode=os.F_OK | os.X_OK, path=None):
13171317
# os.confstr() or CS_PATH is not available
13181318
path = os.defpath
13191319
# bpo-35755: Don't use os.defpath if the PATH environment variable is
1320-
# set to an empty string to mimick Unix which command behavior
1320+
# set to an empty string
13211321

13221322
# PATH='' doesn't match, whereas PATH=':' looks in the current directory
13231323
if not path:

Misc/NEWS.d/next/Library/2019-04-16-17-50-39.bpo-35755.Fg4EXb.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
``os.confstr("CS_PATH")`` if available instead of :data:`os.defpath`, if the
33
``PATH`` environment variable is not set. Moreover, don't use
44
``os.confstr("CS_PATH")`` nor :data:`os.defpath` if the ``PATH`` environment
5-
variable is set to an empty string to mimick Unix ``which`` command
6-
behavior.
5+
variable is set to an empty string.

0 commit comments

Comments
 (0)