Skip to content

Commit

Permalink
Merge branch 'yevhen-sh-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Roadmaster committed Dec 15, 2017
2 parents 6528ed5 + 3f50a1d commit 35c1079
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion forcediphttpsadapter/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
# Requests older than 2.4.0's VerifiedHHTPSConnection is broken and doesn't
# properly use _new_conn. On these versions, use UnverifiedHTTPSConnection
# instead.
if requests.__version__.split(".") < ['2', '4', '0']:
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 35c1079

Please sign in to comment.