gh-101283: Fix use of unbound variable (GH-101712)

This commit is contained in:
Steve Dower 2023-02-08 23:38:56 +00:00 committed by GitHub
parent 23751ed826
commit 20cf32e761
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1494,6 +1494,8 @@ class Popen:
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)