INCR-455: Updates on Python 3.x (#21057)

This commit is contained in:
Amit
2019-07-11 18:17:47 +03:00
committed by Feanil Patel
parent 89930a0f20
commit 8860317772
7 changed files with 16 additions and 1 deletions

View File

@@ -2,6 +2,8 @@
Admin interface for LTI Provider app.
"""
from __future__ import absolute_import
from django.contrib import admin
from .models import LtiConsumer

View File

@@ -1,6 +1,8 @@
"""
Configuration for the lti_provider Django application.
"""
from __future__ import absolute_import
from django.apps import AppConfig

View File

@@ -8,6 +8,8 @@ changes. To do that,
1. Go to the edx-platform dir
2. ./manage.py lms schemamigration lti_provider --auto "description" --settings=devstack
"""
from __future__ import absolute_import
import logging
from django.contrib.auth.models import User

View File

@@ -3,6 +3,8 @@ Helper functions for managing interactions with the LTI outcomes service defined
in LTI v1.1.
"""
from __future__ import absolute_import
import logging
import uuid

View File

@@ -2,6 +2,9 @@
Subclass of oauthlib's RequestValidator that checks an OAuth signature.
"""
from __future__ import absolute_import
import six
from oauthlib.oauth1 import RequestValidator, SignatureOnlyEndpoint
@@ -97,7 +100,7 @@ class SignatureValidator(RequestValidator):
:return: True if the signature matches, False if it does not.
"""
method = unicode(request.method)
method = six.text_type(request.method)
url = request.build_absolute_uri()
body = request.body

View File

@@ -2,6 +2,8 @@
Asynchronous tasks for the LTI provider app.
"""
from __future__ import absolute_import
import logging
from django.contrib.auth.models import User

View File

@@ -2,6 +2,8 @@
LTI Provider API endpoint urls.
"""
from __future__ import absolute_import
from django.conf import settings
from django.conf.urls import url