From b2ab3c607b1bd8e47ef717b81fe220db49962ac7 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 9 Feb 2019 17:04:10 +0000 Subject: sigh --- paramiko/kex_curve25519.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paramiko/kex_curve25519.py b/paramiko/kex_curve25519.py index b092afae..4b9f6b00 100644 --- a/paramiko/kex_curve25519.py +++ b/paramiko/kex_curve25519.py @@ -20,7 +20,8 @@ class KexCurve25519(object): self.transport = transport self.key = None - def is_available(self): + @classmethod + def is_available(cls): try: X25519PrivateKey.generate() except UnsupportedAlgorithm: -- cgit v1.2.3