We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 956ed8d commit cc17f80Copy full SHA for cc17f80
jose/backends/__init__.py
@@ -4,6 +4,16 @@
4
except ImportError:
5
try:
6
from jose.backends.pycrypto_backend import RSAKey # noqa: F401
7
+
8
+ # time.clock was deprecated in python 3.3 in favor of time.perf_counter
9
+ # and removed in python 3.8. pycrypto was never updated for this. If
10
+ # time has no clock attribute, let it use perf_counter instead to work
11
+ # in 3.8+
12
+ # noinspection PyUnresolvedReferences
13
+ import time
14
+ if not hasattr(time, "clock"):
15
+ time.clock = time.perf_counter
16
17
18
from jose.backends.rsa_backend import RSAKey # noqa: F401
19
0 commit comments