diff options
author | Landon GB <landogbland@gmail.com> | 2016-11-30 09:43:28 -0700 |
---|---|---|
committer | Landon GB <landogbland@gmail.com> | 2016-11-30 09:43:28 -0700 |
commit | 2a09da2c6c66890bd5c43fdf52da5684e0bf1029 (patch) | |
tree | f5a15f7072386cc7006fd455bdc7f773db985854 | |
parent | 0550fa347ed29e2ffcd8f26a3adcf0ddcae6fdc3 (diff) | |
download | pyjwt-2a09da2c6c66890bd5c43fdf52da5684e0bf1029.tar.gz |
python2.6 does not support set literals
-rw-r--r-- | jwt/algorithms.py | 4 |
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(): |