mirror of
				https://github.com/jtesta/ssh-audit.git
				synced 2025-10-30 21:15:27 +01:00 
			
		
		
		
	Fix pylint reported attribute-defined-outside-init.
This commit is contained in:
		| @@ -193,6 +193,7 @@ class Output(object): | |||||||
|  |  | ||||||
|  |  | ||||||
| class OutputBuffer(list): | class OutputBuffer(list): | ||||||
|  | 	# pylint: disable=attribute-defined-outside-init | ||||||
| 	def __enter__(self): | 	def __enter__(self): | ||||||
| 		# type: () -> OutputBuffer | 		# type: () -> OutputBuffer | ||||||
| 		self.__buf = StringIO() | 		self.__buf = StringIO() | ||||||
| @@ -1193,6 +1194,7 @@ class KexDH(object): | |||||||
| 		self.__p = p | 		self.__p = p | ||||||
| 		self.__q = (self.__p - 1) // 2 | 		self.__q = (self.__p - 1) // 2 | ||||||
| 		self.__x = None  # type: Optional[int] | 		self.__x = None  # type: Optional[int] | ||||||
|  | 		self.__e = None  # type: Optional[int] | ||||||
| 	 | 	 | ||||||
| 	def send_init(self, s): | 	def send_init(self, s): | ||||||
| 		# type: (SSH.Socket) -> None | 		# type: (SSH.Socket) -> None | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Andris Raugulis
					Andris Raugulis