Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lti-xblock-consumer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenJupyter
lti-xblock-consumer
Commits
86dc6b74
Commit
86dc6b74
authored
4 years ago
by
usamasadiq
Browse files
Options
Downloads
Patches
Plain Diff
Remove usages of six
parent
867f1874
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lti_consumer/lti_1p3/consumer.py
+1
-1
1 addition, 1 deletion
lti_consumer/lti_1p3/consumer.py
lti_consumer/lti_1p3/tests/test_consumer.py
+1
-1
1 addition, 1 deletion
lti_consumer/lti_1p3/tests/test_consumer.py
lti_consumer/utils.py
+2
-3
2 additions, 3 deletions
lti_consumer/utils.py
with
4 additions
and
5 deletions
lti_consumer/lti_1p3/consumer.py
+
1
−
1
View file @
86dc6b74
"""
"""
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
(
...
...
This diff is collapsed.
Click to expand it.
lti_consumer/lti_1p3/tests/test_consumer.py
+
1
−
1
View file @
86dc6b74
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
lti_consumer/utils.py
+
2
−
3
View file @
86dc6b74
...
@@ -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
),
)
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment