Skip to content

Commit

Permalink
Fix import order
Browse files Browse the repository at this point in the history
  • Loading branch information
Roadmaster committed Dec 15, 2017
1 parent 35c1079 commit db6e915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forcediphttpsadapter/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
# if it's <2.7.9 decide to use the old "http://$IP/ technique. If Python is
# >2.7.9 and the adapter doesn't work, unfortunately, there's nothing that can
# be done :(
from distutils.version import StrictVersion
from socket import error as SocketError, timeout as SocketTimeout

import requests
Expand All @@ -88,7 +89,6 @@
# Requests older than 2.4.0's VerifiedHHTPSConnection is broken and doesn't
# properly use _new_conn. On these versions, use UnverifiedHTTPSConnection
# instead.
from distutils.version import StrictVersion
if StrictVersion(requests.__version__) < StrictVersion('2.4.0'):
from requests.packages.urllib3.connection import (
UnverifiedHTTPSConnection as HTTPSConnection
Expand Down

0 comments on commit db6e915

Please sign in to comment.