Pin idna==2.7 when running on Python<2.7.

This commit is contained in:
David Wilson 2019-07-24 15:39:34 +01:00
parent 07f3179e58
commit 2ba3973bc5
1 changed files with 2 additions and 0 deletions

View File

@ -13,3 +13,5 @@ unittest2==1.1.0
# Fix InsecurePlatformWarning while creating py26 tox environment # Fix InsecurePlatformWarning while creating py26 tox environment
# https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings # https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
urllib3[secure]; python_version < '2.7.9' urllib3[secure]; python_version < '2.7.9'
# Last idna compatible with Python 2.6 was idna 2.7.
idna==2.7; python_version < '2.7'