Skip to content

Commit

Permalink
gh-101283: Fix use of unbound variable (GH-101712)
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba authored Feb 8, 2023
1 parent 23751ed commit 20cf32e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -1494,6 +1494,8 @@ def _execute_child(self, args, executable, preexec_fn, close_fds,
raise FileNotFoundError('shell not found: neither %ComSpec% nor %SystemRoot% is set')
if os.path.isabs(comspec):
executable = comspec
else:
comspec = executable

args = '{} /c "{}"'.format (comspec, args)

Expand Down

0 comments on commit 20cf32e

Please sign in to comment.