]> granicus.if.org Git - python/commitdiff
bpo-35755: Don't say "to mimick Unix which command behavior" (GH-12861)
authorVictor Stinner <vstinner@redhat.com>
Wed, 17 Apr 2019 15:44:06 +0000 (17:44 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Apr 2019 15:44:06 +0000 (17:44 +0200)
Lib/distutils/spawn.py
Lib/shutil.py
Misc/NEWS.d/next/Library/2019-04-16-17-50-39.bpo-35755.Fg4EXb.rst

index 888327270e229419c6eeca625c306edb85c89752..d3a12c283397827933325c9a0b72e37c4e9dbe3b 100644 (file)
@@ -188,7 +188,7 @@ def find_executable(executable, path=None):
                 # os.confstr() or CS_PATH is not available
                 path = os.defpath
         # bpo-35755: Don't use os.defpath if the PATH environment variable is
-        # set to an empty string to mimick Unix which command behavior
+        # set to an empty string
 
     # PATH='' doesn't match, whereas PATH=':' looks in the current directory
     if not path:
index 34df9cc4746388247b9b414fbc95f2218079af90..6cfe3738f6eb47a4f6913e3976df12d61c48bc3c 100644 (file)
@@ -1317,7 +1317,7 @@ def which(cmd, mode=os.F_OK | os.X_OK, path=None):
                 # os.confstr() or CS_PATH is not available
                 path = os.defpath
         # bpo-35755: Don't use os.defpath if the PATH environment variable is
-        # set to an empty string to mimick Unix which command behavior
+        # set to an empty string
 
     # PATH='' doesn't match, whereas PATH=':' looks in the current directory
     if not path:
index 8e92ffdec235a98d0f3d3ccc8127a299ec37b4d1..d84f63bf7b838ba57600e3e5d5cd373eb2c258f6 100644 (file)
@@ -2,5 +2,4 @@
 ``os.confstr("CS_PATH")`` if available instead of :data:`os.defpath`, if the
 ``PATH`` environment variable is not set. Moreover, don't use
 ``os.confstr("CS_PATH")`` nor :data:`os.defpath` if the ``PATH`` environment
-variable is set to an empty string to mimick Unix ``which`` command
-behavior.
+variable is set to an empty string.