From 6c2fdeca676bc92aa2abbebbf0fff2aa1d53ab8c Mon Sep 17 00:00:00 2001 From: Christophe Oosterlynck Date: Tue, 14 Oct 2008 13:33:58 +0200 Subject: [PATCH] blockcipher.py: removed unused error classes and exception import --- src/CryptoPlus/Cipher/blockcipher.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/CryptoPlus/Cipher/blockcipher.py b/src/CryptoPlus/Cipher/blockcipher.py index 8c2243f..84eaebb 100644 --- a/src/CryptoPlus/Cipher/blockcipher.py +++ b/src/CryptoPlus/Cipher/blockcipher.py @@ -24,8 +24,6 @@ from ..Util import util from array import array from ..Util.padding import Padding -from exceptions import Exception - MODE_ECB = 1 MODE_CBC = 2 MODE_CFB = 3 @@ -34,22 +32,6 @@ MODE_CTR = 6 MODE_XTS = 7 MODE_CMAC = 8 -class Error(Exception): - """Base class for exceptions in this module.""" - pass - -class InputError(Error): - """Exception raised for errors in the input. - - Attributes: - expression -- input expression in which the error occurred - message -- explanation of the error - """ - - def __init__(self, expression, message): - self.expression = expression - self.message = message - class BlockCipher(): """ Base class for all blockciphers """ -- 2.11.4.GIT