summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2021-11-28 14:06:42 -0500
committerJeff Forcier <jeff@bitprophet.org>2021-11-28 20:24:17 -0500
commit1b4fcd3f0abb209060080034eb66f226196dd8b0 (patch)
tree1aeaaaab39cee8f8ebe38e6d5cd9502989d2d2cb
parent6a6f56da9b00fd3f1fc7ca9ecbe4108853db501e (diff)
Roll back ABC using kit from contributed patch
- blew up good for me for reasons I don't entirely grok - also feels like too big of a change to do in a patch release - is not a critical piece of the bugfix - NotImplementedError is fine for now
-rw-r--r--paramiko/pkey.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/paramiko/pkey.py b/paramiko/pkey.py
index fed68da8..5bdfb1d4 100644
--- a/paramiko/pkey.py
+++ b/paramiko/pkey.py
@@ -20,9 +20,6 @@
Common API for all public keys.
"""
-from abc import ABC
-from abc import abstractproperty
-from abc import abstractmethod
import base64
from binascii import unhexlify
import os
@@ -62,7 +59,7 @@ def _unpad_openssh(data):
return data[:-padding_length]
-class PKey(ABC):
+class PKey(object):
"""
Base class for public keys.
"""
@@ -148,9 +145,9 @@ class PKey(ABC):
def __hash__(self):
return hash(self._fields)
- @abstractproperty
+ @property
def _fields(self):
- pass
+ raise NotImplementedError
def get_name(self):
"""