Skip to content

Commit 080c57a

Browse files
committed
Remove Python 2 support; updated dependencies
1 parent 3fb4594 commit 080c57a

File tree

4 files changed

+2
-144
lines changed

4 files changed

+2
-144
lines changed

hook.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
#!/usr/bin/env python3
22

3-
from __future__ import absolute_import
4-
from __future__ import division
5-
from __future__ import print_function
6-
from __future__ import unicode_literals
7-
8-
from builtins import str
9-
10-
from future import standard_library
11-
standard_library.install_aliases()
12-
133
import dns.exception
144
import dns.resolver
155
import logging
@@ -20,16 +10,6 @@
2010

2111
from tld import get_fld
2212

23-
# Enable verified HTTPS requests on older Pythons
24-
# http://urllib3.readthedocs.org/en/latest/security.html
25-
if sys.version_info[0] == 2:
26-
try:
27-
requests.packages.urllib3.contrib.pyopenssl.inject_into_urllib3()
28-
except AttributeError:
29-
# see https://github.com/certbot/certbot/issues/1883
30-
import urllib3.contrib.pyopenssl
31-
urllib3.contrib.pyopenssl.inject_into_urllib3()
32-
3313
logger = logging.getLogger(__name__)
3414
logger.addHandler(logging.StreamHandler(sys.stdout))
3515

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
dnspython==2.6.1
2-
future==1.0.0
3-
requests==2.31.0
2+
requests==2.32.2
43
six==1.16.0
54
testresources==2.0.1
65
tld==0.13

setup.py

Lines changed: 0 additions & 121 deletions
This file was deleted.

test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
flake8
22
mock>=5.1.0
3-
requests-mock>=1.11.0
3+
requests-mock>=1.12.1
44
testtools>=2.7.1

0 commit comments

Comments
 (0)