diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-01 09:36:02 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-01 09:36:02 -0800 |
commit | 25d24de1417844f95b247365a3fb24f17bf120ff (patch) | |
tree | 8fab1c56fbcaf89527da6e8f4030b09f1027d4b9 | |
parent | 2b241a2efbe17d1b865c9249b904bf0d6df8a76f (diff) | |
download | cryptography-25d24de1417844f95b247365a3fb24f17bf120ff.tar.gz cryptography-25d24de1417844f95b247365a3fb24f17bf120ff.tar.bz2 cryptography-25d24de1417844f95b247365a3fb24f17bf120ff.zip |
Sigh.
-rw-r--r-- | cryptography/exceptions.py | 17 |
1 files 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 |