aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-01 09:36:02 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-03-01 09:36:02 -0800
commit25d24de1417844f95b247365a3fb24f17bf120ff (patch)
tree8fab1c56fbcaf89527da6e8f4030b09f1027d4b9
parent2b241a2efbe17d1b865c9249b904bf0d6df8a76f (diff)
downloadcryptography-25d24de1417844f95b247365a3fb24f17bf120ff.tar.gz
cryptography-25d24de1417844f95b247365a3fb24f17bf120ff.tar.bz2
cryptography-25d24de1417844f95b247365a3fb24f17bf120ff.zip
Sigh.
-rw-r--r--cryptography/exceptions.py17
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