From dd4fe82b0026f68391d11935fff79c9a31b38889 Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Fri, 6 Sep 2013 18:03:02 +0300 Subject: [PATCH] Improve code. --- common/lib/xmodule/xmodule/lti_module.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/lib/xmodule/xmodule/lti_module.py b/common/lib/xmodule/xmodule/lti_module.py index ba7b6b621d..3fd2e2f6a6 100644 --- a/common/lib/xmodule/xmodule/lti_module.py +++ b/common/lib/xmodule/xmodule/lti_module.py @@ -158,9 +158,7 @@ class LTIModule(LTIFields, XModule): Should be "x=y" string.'.format(custom_parameter)) # LTI specs: 'custom_' should be prepended before each custom parameter - custom_parameters.update( - {u'custom_' + unicode(param_name): unicode(param_value)} - ) + custom_parameters[u'custom_' + unicode(param_name)] = unicode(param_value) input_fields = (self.oauth_params( custom_parameters,