Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan committed Jan 22, 2025
1 parent ca97c06 commit 2102568
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions command_runner/elevate.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def _windows_runner(runner, arguments):
# from win32com.shell.shell import ShellExecuteEx
# from win32com.shell import shellcon
# pylint: disable=C0103 (invalid-name)
# pylint: disable=E0606 (possibly-used-before-assignment)
childProcess = ShellExecuteEx(
nShow=0,
fMask=shellcon.SEE_MASK_NOCLOSEPROCESS,
Expand All @@ -132,8 +133,10 @@ def _windows_runner(runner, arguments):
# pylint: disable=C0103 (invalid-name)
procHandle = childProcess["hProcess"]
# pylint: disable=I1101 (c-extension-no-member)
# pylint: disable=E0606 (possibly-used-before-assignment)
win32event.WaitForSingleObject(procHandle, win32event.INFINITE)
# pylint: disable=I1101 (c-extension-no-member)
# pylint: disable=E0606 (possibly-used-before-assignment)
exit_code = win32process.GetExitCodeProcess(procHandle)
return exit_code

Expand Down

0 comments on commit 2102568

Please sign in to comment.