From dfb8c302bfbb7b58d7d7e9d7f5e1d4be483ffd40 Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Thu, 20 Oct 2016 16:46:53 +0300 Subject: [PATCH] Fix pylint reported attribute-defined-outside-init. --- ssh-audit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssh-audit.py b/ssh-audit.py index cb7a1a4..15183cf 100755 --- a/ssh-audit.py +++ b/ssh-audit.py @@ -193,6 +193,7 @@ class Output(object): class OutputBuffer(list): + # pylint: disable=attribute-defined-outside-init def __enter__(self): # type: () -> OutputBuffer self.__buf = StringIO() @@ -1193,6 +1194,7 @@ class KexDH(object): self.__p = p self.__q = (self.__p - 1) // 2 self.__x = None # type: Optional[int] + self.__e = None # type: Optional[int] def send_init(self, s): # type: (SSH.Socket) -> None