summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLandon GB <landogbland@gmail.com>2016-11-30 09:43:28 -0700
committerLandon GB <landogbland@gmail.com>2016-11-30 09:43:28 -0700
commit2a09da2c6c66890bd5c43fdf52da5684e0bf1029 (patch)
treef5a15f7072386cc7006fd455bdc7f773db985854
parent0550fa347ed29e2ffcd8f26a3adcf0ddcae6fdc3 (diff)
downloadpyjwt-2a09da2c6c66890bd5c43fdf52da5684e0bf1029.tar.gz
python2.6 does not support set literals
-rw-r--r--jwt/algorithms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/jwt/algorithms.py b/jwt/algorithms.py
index 8360ed9..2fe1883 100644
--- a/jwt/algorithms.py
+++ b/jwt/algorithms.py
@@ -31,8 +31,8 @@ try:
except ImportError:
has_crypto = False
-requires_cryptography = {'RS256', 'RS384', 'RS512', 'ES256', 'ES384', 'ES521',
- 'ES512', 'PS256', 'PS384', 'PS512'}
+requires_cryptography = set(['RS256', 'RS384', 'RS512', 'ES256', 'ES384',
+ 'ES521', 'ES512', 'PS256', 'PS384', 'PS512'])
def get_default_algorithms():