annotations: Fix pylint violations
authorJuerg Haefliger <juergh@proton.me>
Fri, 10 Feb 2023 09:31:51 +0000 (10:31 +0100)
committerJuerg Haefliger <juergh@proton.me>
Sat, 11 Feb 2023 08:16:17 +0000 (09:16 +0100)
commitf827825327a6c36cfdf62d1fdb6f005fbcbee750
tree5b21d020b522f8cd2a6953c8c69efdbdf62718c3
parent9c33267debded265b9ed63d5e815b12e55bfa505
annotations: Fix pylint violations

Fix the following:
R1722: Consider using sys.exit() (consider-using-sys-exit)
C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
W0703: Catching too general exception Exception (broad-except)
W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
C0411: standard import "from signal import signal, SIGPIPE, SIG_DFL" should be placed before "from kconfig.annotations import Annotation, KConfig" (wrong-import-order)

Signed-off-by: Juerg Haefliger <juergh@proton.me>
annotations