mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
siso: disable linter on staticly inferable check that original_sigint_handler is callable.
Change-Id: I6429a0f91a52449438938e4c82df51e96a6a6964 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7259440 Reviewed-by: Junji Watanabe <jwata@google.com> Commit-Queue: Alex Ovsienko <ovsienko@google.com>
This commit is contained in:
2
siso.py
2
siso.py
@@ -456,7 +456,7 @@ def main(args, telemetry_cfg: Optional[build_telemetry.Config] = None):
|
|||||||
def _ignore(signum, frame):
|
def _ignore(signum, frame):
|
||||||
try:
|
try:
|
||||||
# Call the original signal handler.
|
# Call the original signal handler.
|
||||||
original_sigint_handler(signum, frame)
|
original_sigint_handler(signum, frame) # type: ignore
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
# Do not reraise KeyboardInterrupt so as to not kill siso too early.
|
# Do not reraise KeyboardInterrupt so as to not kill siso too early.
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user