summaryrefslogtreecommitdiff
path: root/jwt/algorithms.py
diff options
context:
space:
mode:
authorLandon GB <landogbland@gmail.com>2016-11-28 10:35:31 -0700
committerLandon GB <landogbland@gmail.com>2016-11-28 10:35:31 -0700
commit31494c95cb9c1342d3b1e02feac41a83667dc4cd (patch)
tree066bed2a64e4454d2d5e6c68d510d041f6fed8b3 /jwt/algorithms.py
parent2fec85102ed8b149cbb3705305509db55d95b351 (diff)
downloadpyjwt-31494c95cb9c1342d3b1e02feac41a83667dc4cd.tar.gz
Fix all flake8 issues tox is complaining about
Diffstat (limited to 'jwt/algorithms.py')
-rw-r--r--jwt/algorithms.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/jwt/algorithms.py b/jwt/algorithms.py
index 895bff4..77a910d 100644
--- a/jwt/algorithms.py
+++ b/jwt/algorithms.py
@@ -61,7 +61,6 @@ def _get_crypto_algorithms():
return crypto_algorithms
-
def get_default_algorithms():
"""
Returns the algorithms that are implemented by the library.
@@ -89,7 +88,6 @@ def get_crypto_algorithms():
return set(crypto_algorithms)
-
class Algorithm(object):
"""
The interface for an algorithm used to sign and verify tokens.
@@ -201,6 +199,7 @@ class HMACAlgorithm(Algorithm):
def verify(self, msg, key, sig):
return constant_time_compare(sig, self.sign(msg, key))
+
if has_crypto:
class RSAAlgorithm(Algorithm):