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 cc710e0 commit 22189e3Copy full SHA for 22189e3
jose/jws.py
@@ -3,7 +3,10 @@
3
import json
4
import six
5
6
-from collections import Mapping, Iterable
+try:
7
+ from collections.abc import Mapping, Iterable # Python 3
8
+except ImportError:
9
+ from collections import Mapping, Iterable # Python 2, will be deprecated in Python 3.8
10
11
from jose import jwk
12
from jose.constants import ALGORITHMS
jose/jwt.py
@@ -2,7 +2,10 @@
2
from calendar import timegm
-from collections import Mapping
+ from collections.abc import Mapping # Python3
+ from collections import Mapping # Python2, will be depecrated in Python 3.8
from datetime import datetime
from datetime import timedelta
from six import string_types
0 commit comments