Skip to content
Snippets Groups Projects
Commit 86dc6b74 authored by usamasadiq's avatar usamasadiq
Browse files

Remove usages of six

parent 867f1874
No related branches found
No related tags found
No related merge requests found
""" """
LTI 1.3 Consumer implementation LTI 1.3 Consumer implementation
""" """
from six.moves.urllib.parse import urlencode from urllib.parse import urlencode
from . import exceptions from . import exceptions
from .constants import ( from .constants import (
......
...@@ -4,11 +4,11 @@ Unit tests for LTI 1.3 consumer implementation ...@@ -4,11 +4,11 @@ Unit tests for LTI 1.3 consumer implementation
from __future__ import absolute_import, unicode_literals from __future__ import absolute_import, unicode_literals
import json import json
from urllib.parse import urlparse, parse_qs
import ddt import ddt
from mock import patch from mock import patch
from django.test.testcases import TestCase from django.test.testcases import TestCase
from six.moves.urllib.parse import urlparse, parse_qs
from Crypto.PublicKey import RSA from Crypto.PublicKey import RSA
from jwkest.jwk import load_jwks from jwkest.jwk import load_jwks
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
""" """
Utility functions for LTI Consumer block Utility functions for LTI Consumer block
""" """
from six import text_type
from django.conf import settings from django.conf import settings
...@@ -40,7 +39,7 @@ def get_lms_lti_keyset_link(location): ...@@ -40,7 +39,7 @@ def get_lms_lti_keyset_link(location):
""" """
return u"{lms_base}/api/lti_consumer/v1/public_keysets/{location}".format( return u"{lms_base}/api/lti_consumer/v1/public_keysets/{location}".format(
lms_base=get_lms_base(), lms_base=get_lms_base(),
location=text_type(location), location=str(location),
) )
...@@ -63,5 +62,5 @@ def get_lms_lti_access_token_link(location): ...@@ -63,5 +62,5 @@ def get_lms_lti_access_token_link(location):
""" """
return u"{lms_base}/api/lti_consumer/v1/token/{location}".format( return u"{lms_base}/api/lti_consumer/v1/token/{location}".format(
lms_base=get_lms_base(), lms_base=get_lms_base(),
location=text_type(location), location=str(location),
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment