From 5e3c6736aba8460e5631ceb577bcd19a23d4792a Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Fri, 6 Sep 2013 18:04:59 +0300 Subject: [PATCH] Fixes. --- common/lib/xmodule/xmodule/lti_module.py | 2 +- lms/djangoapps/courseware/tests/test_lti.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/lti_module.py b/common/lib/xmodule/xmodule/lti_module.py index 5ff80239bf..f99e792ded 100644 --- a/common/lib/xmodule/xmodule/lti_module.py +++ b/common/lib/xmodule/xmodule/lti_module.py @@ -214,7 +214,7 @@ class LTIModule(LTIFields, XModule): # This is needed for body encoding: headers = {'Content-Type': 'application/x-www-form-urlencoded'} - _, headers, _ = client.sign( + __, headers, __ = client.sign( unicode(self.launch_url), http_method=u'POST', body=body, diff --git a/lms/djangoapps/courseware/tests/test_lti.py b/lms/djangoapps/courseware/tests/test_lti.py index e863d47636..c1772dbf9a 100644 --- a/lms/djangoapps/courseware/tests/test_lti.py +++ b/lms/djangoapps/courseware/tests/test_lti.py @@ -49,7 +49,7 @@ class TestLTI(BaseTestXmodule): Mocked oauth1 sign function. """ # self is here: - _, headers, _ = saved_sign(self, *args, **kwargs) + __, headers, __ = saved_sign(self, *args, **kwargs) # we should replace noonce, timestamp and signed_signature in headers: old = headers[u'Authorization'] old_parsed = OrderedDict([param.strip().replace('"', '').split('=') for param in old.split(',')])