From 25d24de1417844f95b247365a3fb24f17bf120ff Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 1 Mar 2014 09:36:02 -0800 Subject: Sigh. --- cryptography/exceptions.py | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/cryptography/exceptions.py b/cryptography/exceptions.py index b98f6ab9..a26dbe18 100644 --- a/cryptography/exceptions.py +++ b/cryptography/exceptions.py @@ -11,29 +11,20 @@ # See the License for the specific language governing permissions and # limitations under the License. -import abc -import six - -from cryptography import utils - - -class UnsupportedAlgorithm(six.with_metaclass(abc.ABCBase)): +class UnsupportedAlgorithm(Exception): pass -@utils.register_interface(UnsupportedAlgorithm) -class UnsupportedCipher(Exception): +class UnsupportedCipher(UnsupportedAlgorithm): pass -@utils.register_interface(UnsupportedAlgorithm) -class UnsupportedHash(Exception): +class UnsupportedHash(UnsupportedAlgorithm): pass -@utils.register_interface(UnsupportedAlgorithm) -class UnsupportedPadding(Exception): +class UnsupportedPadding(UnsupportedAlgorithm): pass -- cgit v1.2.3