Commit 0c0859f1 by David Baumgold

Merge pull request #4026 from edx/db/requests-2

Upgrade `requests` module
parents 4c5c00da cfec580a
......@@ -256,7 +256,7 @@ class StubLtiHandler(StubHttpRequestHandler):
sha1 = hashlib.sha1()
sha1.update(body)
oauth_body_hash = unicode(base64.b64encode(sha1.digest())) # pylint: disable=too-many-function-args
params = client.get_oauth_params()
params = client.get_oauth_params(None)
params.append((u'oauth_body_hash', oauth_body_hash))
mock_request = mock.Mock(
uri=unicode(urllib.unquote(url)),
......
......@@ -106,7 +106,7 @@ class LTI20ModuleMixin(object):
log.debug("[LTI] oauth_body_hash = {}".format(oauth_body_hash))
client_key, client_secret = self.get_client_key_secret()
client = Client(client_key, client_secret)
params = client.get_oauth_params()
params = client.get_oauth_params(None)
params.append((u'oauth_body_hash', oauth_body_hash))
mock_request = mock.Mock(
uri=unicode(urllib.unquote(request.url)),
......
......@@ -37,7 +37,7 @@ Markdown==2.2.1
mock==1.0.1
networkx==1.7
nltk==2.0.4
oauthlib==0.5.1
oauthlib==0.6.3
paramiko==1.9.0
path.py==3.0.1
Pillow==1.7.8
......@@ -50,7 +50,7 @@ python-memcached==1.48
python-openid==2.2.5
pytz==2012h
PyYAML==3.10
requests==1.2.3
requests==2.3.0
Shapely==1.2.16
sorl-thumbnail==11.12
South==0.7.6
......
......@@ -47,7 +47,7 @@ mongoengine==0.7.10
networkx==1.7
nltk==2.0.4
nose==1.3.3
oauthlib==0.5.1
oauthlib==0.6.3
paramiko==1.9.0
path.py==3.0.1
Pillow==1.7.8
......@@ -65,8 +65,8 @@ python-social-auth==0.1.23
pytz==2012h
pysrt==0.4.7
PyYAML==3.10
requests==1.2.3
requests-oauthlib==0.4.0
requests==2.3.0
requests-oauthlib==0.4.1
scipy==0.11.0
Shapely==1.2.16
singledispatch==3.4.0.2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment