We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5cdc90 commit 4b0701bCopy full SHA for 4b0701b
jose/jws.py
@@ -1,6 +1,10 @@
1
import binascii
2
import json
3
-from collections.abc import Iterable, Mapping
+
4
+try:
5
+ from collections.abc import Iterable, Mapping
6
+except ImportError:
7
+ from collections import Mapping, Iterable
8
9
from jose import jwk
10
from jose.backends.base import Key
jose/jwt.py
from calendar import timegm
-from collections.abc import Mapping
+ from collections.abc import Mapping
+ from collections import Mapping
from datetime import datetime, timedelta
from jose import jws
0 commit comments