Skip to content

Commit 402c815

Browse files
author
Michael Davis
committed
default to pycrypto backend
1 parent 7b9310b commit 402c815

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ necessary, other RSA backends are supported. Both pycrpyto and crytography are o
4040
In order to use a custom backend, install python-jose with the appropriate extra.
4141

4242
::
43+
4344
$ pip install python-jose[pycrypto]
4445
$ pip install python-jose[crytography]
4546

47+
4648
Usage
4749
-----
4850

jose/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
__version__ = "1.4.0"
2+
__version__ = "2.0.0"
33
__author__ = 'Michael Davis'
44
__license__ = 'MIT'
55
__copyright__ = 'Copyright 2016 Michael Davis'

jose/backends/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
try:
3-
from jose.backends.cryptography_backend import CryptographyRSAKey as RSAKey
4-
except ImportError:
53
from jose.backends.pycrypto_backend import RSAKey
6-
4+
except ImportError:
5+
from jose.backends.cryptography_backend import CryptographyRSAKey as RSAKey
6+
77
try:
88
from jose.backends.cryptography_backend import CryptographyECKey as ECKey
99
except ImportError:

0 commit comments

Comments
 (0)