Skip to content

Commit 5d2a97e

Browse files
committed
Move and reword comment for brevity and clarity.
1 parent bce1a22 commit 5d2a97e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

distutils/spawn.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,13 @@ def find_executable(executable, path=None):
8383

8484
if path is None:
8585
path = os.environ.get('PATH', None)
86+
# bpo-35755: Don't fall through if PATH is the empty string
8687
if path is None:
8788
try:
8889
path = os.confstr("CS_PATH")
8990
except (AttributeError, ValueError):
9091
# os.confstr() or CS_PATH is not available
9192
path = os.defpath
92-
# bpo-35755: Don't use os.defpath if the PATH environment variable is
93-
# set to an empty string
9493

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

0 commit comments

Comments
 (0)