8000 Fix ssl warnings on Python 2 using requests · Muix2015/twilio-python@104228f · GitHub
[go: up one dir, main page]

Skip to content

Commit 104228f

Browse files
committed
Fix ssl warnings on Python 2 using requests
1 parent 5f02c81 commit 104228f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@
1313
#
1414
# You need to have the setuptools module installed. Try reading the setuptools
1515
# documentation: http://pypi.python.org/pypi/setuptools
16-
REQUIRES = ["requests >= 2.0.0", "six", "pytz", "PyJWT == 1.4.2"]
16+
REQUIRES = ["requests >= 2.0.0", "six", "pytz", "PyJWT >= 1.4.2"]
1717

1818
if sys.version_info < (2, 6):
1919
REQUIRES.append('simplejson')
20-
if sys.version_info >= (3,0):
20+
if sys.version_info < (3, 0):
21+
REQUIRES.extend(["cryptography >= 1.3.4", "idna >= 2.0.0", "pyOpenSSL >= 0.14"])
22+
if sys.version_info >= (3, 0):
2123
REQUIRES.append('pysocks')
2224

2325
setup(

twilio/http/http_client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,3 @@ def request(self, method, url, params=None, data=None, headers=None, auth=None,
3737
)
3838

3939
return Response(int(response.status_code), response.content.decode('utf-8'))
40-
41-
42-

0 commit comments

Comments
 (0)
0