Skip to content

Commit 2102568

Browse files
committed
Linter fixes
1 parent ca97c06 commit 2102568

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

command_runner/elevate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def _windows_runner(runner, arguments):
121121
# from win32com.shell.shell import ShellExecuteEx
122122
# from win32com.shell import shellcon
123123
# pylint: disable=C0103 (invalid-name)
124+
# pylint: disable=E0606 (possibly-used-before-assignment)
124125
childProcess = ShellExecuteEx(
125126
nShow=0,
126127
fMask=shellcon.SEE_MASK_NOCLOSEPROCESS,
@@ -132,8 +133,10 @@ def _windows_runner(runner, arguments):
132133
# pylint: disable=C0103 (invalid-name)
133134
procHandle = childProcess["hProcess"]
134135
# pylint: disable=I1101 (c-extension-no-member)
136+
# pylint: disable=E0606 (possibly-used-before-assignment)
135137
win32event.WaitForSingleObject(procHandle, win32event.INFINITE)
136138
# pylint: disable=I1101 (c-extension-no-member)
139+
# pylint: disable=E0606 (possibly-used-before-assignment)
137140
exit_code = win32process.GetExitCodeProcess(procHandle)
138141
return exit_code
139142

0 commit comments

Comments
 (0)