summaryrefslogtreecommitdiff
path: root/jwt/algorithms.py
diff options
context:
space:
mode:
authorMark Adams <mark@markadams.me>2015-01-06 08:25:07 -0600
committerMark Adams <mark@markadams.me>2015-01-18 10:29:21 -0600
commitdb1d3563db4aa2eed916c4722d3345bf708b1ec2 (patch)
treede9b25c890e39338e3072a21db0a51ed10efcfe4 /jwt/algorithms.py
parent3958141e922e29e9c6342aded58e9707226b91a2 (diff)
downloadpyjwt-db1d3563db4aa2eed916c4722d3345bf708b1ec2.tar.gz
Algorithm base class methods now raise NotImplementedError
Diffstat (limited to 'jwt/algorithms.py')
-rw-r--r--jwt/algorithms.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/jwt/algorithms.py b/jwt/algorithms.py
index 427dafd..1fd0ca0 100644
--- a/jwt/algorithms.py
+++ b/jwt/algorithms.py
@@ -41,13 +41,13 @@ def _register_default_algorithms():
class Algorithm(object):
def prepare_key(self, key):
- pass
+ raise NotImplementedError
def sign(self, msg, key):
- pass
+ raise NotImplementedError
def verify(self, msg, key, sig):
- pass
+ raise NotImplementedError
class NoneAlgorithm(Algorithm):