Skip to content

Commit 47edfc5

Browse files
authored
Remove more python 2 compatibility code. (#259)
Since python 2.7 is no longer supported.
1 parent efe41c3 commit 47edfc5

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

docs/conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
#
31
# python-jose documentation build configuration file, created by
42
# sphinx-quickstart on Thu May 7 13:48:43 2015.
53
#

jose/jwe.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
import binascii
22
import json
33
import zlib
4+
from collections.abc import Mapping
45
from struct import pack
56

6-
try:
7-
from collections.abc import Mapping # Python 3
8-
except ImportError:
9-
from collections import Mapping # Python 2, will be deprecated in Python 3.8
10-
117
from . import jwk
128
from .backends import get_random_bytes
139
from .constants import ALGORITHMS, ZIPS

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_packages(package):
2222

2323
pyasn1 = ["pyasn1"]
2424
extras_require = {
25-
"cryptography": ["cryptography"],
25+
"cryptography": ["cryptography>=3.4.0"],
2626
"pycrypto": ["pycrypto >=2.6.0, <2.7.0"] + pyasn1,
2727
"pycryptodome": ["pycryptodome >=3.3.1, <4.0.0"] + pyasn1,
2828
}

0 commit comments

Comments
 (0)