File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -273,12 +273,12 @@ def _safer_popen_windows(
273
273
if shell :
274
274
# The original may be immutable, or the caller may reuse it. Mutate a copy.
275
275
env = {} if env is None else dict (env )
276
- env ["NoDefaultCurrentDirectoryInExePath" ] = "1" # The "1" can be an value.
276
+ env ["NoDefaultCurrentDirectoryInExePath" ] = "1" # The "1" can be any value.
277
277
278
278
# When not using a shell, the current process does the search in a
279
279
# CreateProcessW API call, so the variable must be set in our environment. With
280
280
# a shell, that's unnecessary if https://github.com/python/cpython/issues/101283
281
- # is patched. In Python versions where it is unpatched, and in the rare case the
281
+ # is patched. In Python versions where it is unpatched, in the rare case the
282
282
# ComSpec environment variable is unset, the search for the shell itself is
283
283
# unsafe. Setting NoDefaultCurrentDirectoryInExePath in all cases, as done here,
284
284
# is simpler and protects against that. (As above, the "1" can be any value.)
You can’t perform that action at this time.
0 commit comments