Merge pull request #2541 from edx/ned/remove-unused-imports
Remove unused imports.
This commit is contained in:
@@ -3,10 +3,9 @@ Ideally, it will be the only place that needs to know about any special settings
|
||||
like DISABLE_START_DATES"""
|
||||
import logging
|
||||
from datetime import datetime, timedelta
|
||||
from functools import partial
|
||||
|
||||
from django.conf import settings
|
||||
from django.contrib.auth.models import Group, AnonymousUser
|
||||
from django.contrib.auth.models import AnonymousUser
|
||||
|
||||
from xmodule.course_module import CourseDescriptor
|
||||
from xmodule.error_module import ErrorDescriptor
|
||||
|
||||
@@ -4,7 +4,6 @@ django admin pages for courseware model
|
||||
|
||||
from courseware.models import StudentModule, OfflineComputedGrade, OfflineComputedGradeLog
|
||||
from ratelimitbackend import admin
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
admin.site.register(StudentModule)
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ from collections import defaultdict
|
||||
from fs.errors import ResourceNotFoundError
|
||||
import logging
|
||||
import inspect
|
||||
import re
|
||||
|
||||
from path import path
|
||||
from django.http import Http404
|
||||
|
||||
@@ -16,7 +16,6 @@ from path import path
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
|
||||
from xmodule.modulestore.django import modulestore
|
||||
from xmodule.contentstore.django import contentstore
|
||||
from xmodule.modulestore.xml_exporter import export_to_xml
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ Mock LTI server for manual testing.
|
||||
Used for manual testing and testing on sandbox.
|
||||
"""
|
||||
|
||||
import threading
|
||||
from mock_lti_server import MockLTIServer
|
||||
|
||||
server_port = 8034
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
"""
|
||||
Test for Mock_LTI_Server
|
||||
"""
|
||||
import mock
|
||||
from mock import Mock
|
||||
import unittest
|
||||
import threading
|
||||
import textwrap
|
||||
import urllib
|
||||
import requests
|
||||
from mock_lti_server import MockLTIServer
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ Tests related to the Microsites feature
|
||||
"""
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.test.utils import override_settings
|
||||
from unittest import skip
|
||||
|
||||
from xmodule.modulestore.tests.factories import CourseFactory, ItemFactory
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@ from django.test.utils import override_settings
|
||||
|
||||
# Need access to internal func to put users in the right group
|
||||
from courseware import grades
|
||||
from courseware.model_data import FieldDataCache
|
||||
from courseware.models import StudentModule
|
||||
|
||||
from xmodule.modulestore.django import modulestore, editable_modulestore
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import logging
|
||||
import urllib
|
||||
|
||||
from functools import partial
|
||||
from collections import defaultdict
|
||||
|
||||
from django.conf import settings
|
||||
@@ -10,7 +9,7 @@ from django.core.exceptions import PermissionDenied
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.contrib.auth.models import User
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.http import Http404, HttpResponse, HttpResponseRedirect
|
||||
from django.http import Http404, HttpResponse
|
||||
from django.shortcuts import redirect
|
||||
from edxmako.shortcuts import render_to_response, render_to_string
|
||||
from django_future.csrf import ensure_csrf_cookie
|
||||
@@ -20,12 +19,11 @@ from markupsafe import escape
|
||||
|
||||
from courseware import grades
|
||||
from courseware.access import has_access
|
||||
from courseware.courses import (get_courses, get_course_with_access,
|
||||
get_courses_by_university, sort_by_announcement)
|
||||
from courseware.courses import get_courses, get_course_with_access, sort_by_announcement
|
||||
import courseware.tabs as tabs
|
||||
from courseware.masquerade import setup_masquerade
|
||||
from courseware.model_data import FieldDataCache
|
||||
from .module_render import toc_for_course, get_module_for_descriptor, get_module
|
||||
from .module_render import toc_for_course, get_module_for_descriptor
|
||||
from courseware.models import StudentModule, StudentModuleHistory
|
||||
from course_modes.models import CourseMode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user